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
| `OPENROUTER_APP_NAME` | OpenRouter attribution title override (default: `GOModel`) |
193
195
| `XAI_API_KEY` | xAI / Grok |
194
196
| `XAI_BASE_URL` | xAI (custom endpoint) |
195
197
| `GROQ_API_KEY` | Groq |
@@ -224,6 +226,9 @@ Ollama requires no API key. Even with no YAML and no `OLLAMA_BASE_URL` set, an O
224
226
**Azure ships with a pinned API version by default.**
225
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.
226
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
+
227
232
**Partial YAML fields leave the rest at defaults.**
228
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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,8 @@ Set these to automatically register providers. No YAML configuration required.
136
136
137
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
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`.
140
+
139
141
### 2. `.env` File
140
142
141
143
GOModel automatically loads a `.env` file from the working directory at startup. This is convenient for local development.
0 commit comments