You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -213,6 +220,15 @@ Setting `CIRCUIT_BREAKER_TIMEOUT=60s` in the environment overrides whatever `tim
213
220
**Ollama is always active.**
214
221
Ollama requires no API key. Even with no YAML and no `OLLAMA_BASE_URL` set, an Ollama provider is registered pointing at `http://localhost:11434/v1`. If you do not want Ollama, make sure no Ollama instance is reachable at that address (the gateway's availability check will remove it from routing if it cannot be reached).
215
222
223
+
**Azure requires both key and base URL.**
224
+
`AZURE_API_KEY`alone is not enough for auto-discovery. Set `AZURE_API_BASE` to the Azure deployment endpoint as well, otherwise the provider is ignored.
225
+
226
+
**Azure ships with a pinned API version by default.**
227
+
If you do not set `AZURE_API_VERSION`, the gateway sends `api-version=2024-10-21`. Override it only when you need a different Azure API version.
228
+
229
+
**OpenRouter gets GOModel attribution headers by default.**
230
+
When the `openrouter` provider is used, the gateway adds `HTTP-Referer` and `X-OpenRouter-Title` unless the request already provides them. Override the defaults with `OPENROUTER_SITE_URL` and `OPENROUTER_APP_NAME`.
231
+
216
232
**Partial YAML fields leave the rest at defaults.**
217
233
YAML is unmarshalled onto the struct that was already populated by built-in defaults. Only fields that appear in the file are written. Omitting `max_backoff` from `resilience.retry` leaves it at `30s`; you do not need to repeat defaults you are happy with.
Copy file name to clipboardExpand all lines: docs/advanced/configuration.mdx
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,11 +128,15 @@ Set these to automatically register providers. No YAML configuration required.
128
128
|`OPENAI_API_KEY`| OpenAI |
129
129
|`ANTHROPIC_API_KEY`| Anthropic |
130
130
|`GEMINI_API_KEY`| Google Gemini |
131
+
|`OPENROUTER_API_KEY`| OpenRouter |
131
132
|`XAI_API_KEY`| xAI (Grok) |
132
133
|`GROQ_API_KEY`| Groq |
134
+
|`AZURE_API_KEY`| Azure OpenAI (`AZURE_API_BASE` also required) |
133
135
|`OLLAMA_BASE_URL`| Ollama (no API key needed) |
134
136
135
-
You can also set a custom base URL for any provider using `<PROVIDER>_BASE_URL` (e.g., `OPENAI_BASE_URL`).
137
+
Most providers can use a custom base URL via `<PROVIDER>_BASE_URL` (for example `OPENAI_BASE_URL`). OpenRouter defaults to `https://openrouter.ai/api/v1` and can be overridden with `OPENROUTER_BASE_URL`. Azure uses `AZURE_API_BASE` for its deployment base URL and accepts an optional `AZURE_API_VERSION` override; otherwise it defaults to `2024-10-21`.
138
+
139
+
For OpenRouter, GOModel also sends default attribution headers unless the request already sets them. Override those defaults with `OPENROUTER_SITE_URL` and `OPENROUTER_APP_NAME`.
0 commit comments