Skip to main content

Custom

Use this when the real endpoint is OpenAI-compatible but does not map cleanly to one of Loong’s built-in provider families.

At A Glance

Minimal Config

Verify It

If runtime models list is unreliable for this account or region, pin an explicit provider.model or add preferred_models instead of leaving recovery implicit.

Auth And Routing Contract

Operator Notes

  • custom requires tenant-scoped base_url configuration: replace <openai-compatible-host> in provider.base_url with your real OpenAI-compatible endpoint root such as https://api.example.com/v1; current template: https://<openai-compatible-host>/v1.
  • Alternative auth path: add Authorization / X-API-Key in provider.headers.
  • Use provider.headers only when the upstream auth contract does not fit the default bearer-token path.