Connect Azure OpenAI, Z.ai, or another direct endpoint
Endpoints that are not in the built-in list get their own form, where you supply the label, the base URL, the model, the auth style and the path yourself.
Last checked against the app on · View as Markdown
Steps
- Open Settings, then AI & extensions, then API keys, and scroll to "Direct providers".
- Give it a label you will recognise later, such as "Azure prod". The label is yours; it is not sent anywhere.
- Enter the base URL exactly as your provider documents it.
- Enter the model or deployment name. For Azure this is your deployment name, not the underlying model name, and using the wrong one is the single most common failure here.
- Set the auth style and the path template if your endpoint differs from the default. Leave both alone unless your provider’s documentation tells you otherwise.
- Save, then add its key the same way as any other provider.
How to tell it worked
The provider appears in its own "Direct providers" list, separately from the built-in ones, and its model is selectable in Chat.
If it does not work
- Requests return 404.
- The path template does not match your endpoint. Azure deployments in particular sit under a deployment-specific path rather than the plain /chat/completions most OpenAI-compatible services use.
- Requests return 401 with a key you know is good.
- Auth style. Some endpoints want a bearer token and some want a provider-specific header. Match what the provider documents, not what another provider uses.