Skip to content

Commit 5ed2fe6

Browse files
Merge branch 'main' of github.com:Simon-McIntosh/imas-codex
2 parents 7c6629b + e538b26 commit 5ed2fe6

1 file changed

Lines changed: 23 additions & 13 deletions

File tree

imas_codex/config/litellm_config.yaml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,66 +41,76 @@ model_list:
4141
litellm_params: &opus
4242
model: anthropic/claude-opus-4-6
4343
litellm_credential_name: codex-anthropic
44-
extra_headers: &hdr
44+
extra_headers: &cx_hdr
4545
X-Title: imas-codex
46-
HTTP-Referer: https://github.com/iterorganization/imas-codex
46+
HTTP-Referer: &referer https://github.com/iterorganization/imas-codex
4747

4848
- model_name: openrouter/anthropic/claude-sonnet-4-6
4949
litellm_params: &sonnet
5050
model: anthropic/claude-sonnet-4-6
5151
litellm_credential_name: codex-anthropic
52-
extra_headers: *hdr
52+
extra_headers: *cx_hdr
5353

5454
- model_name: openrouter/anthropic/claude-haiku-4-5
5555
litellm_params: &haiku
5656
model: anthropic/claude-haiku-4-5
5757
litellm_credential_name: codex-anthropic
58-
extra_headers: *hdr
58+
extra_headers: *cx_hdr
5959

6060
# ── Google Gemini (OpenAI-compatible /api/v1) ──────────
6161
- model_name: openrouter/google/gemini-3.1-flash-lite-preview
6262
litellm_params:
6363
model: openai/google/gemini-3.1-flash-lite-preview
6464
litellm_credential_name: codex
65-
extra_headers: *hdr
65+
extra_headers: *cx_hdr
6666

6767
- model_name: openrouter/google/gemini-3.1-pro-preview
6868
litellm_params:
6969
model: openai/google/gemini-3.1-pro-preview
7070
litellm_credential_name: codex
71-
extra_headers: *hdr
71+
extra_headers: *cx_hdr
7272

7373
# ── OpenAI GPT (OpenAI-compatible /api/v1) ─────────────
7474
- model_name: openrouter/openai/gpt-4o
7575
litellm_params:
7676
model: openai/openai/gpt-4o
7777
litellm_credential_name: codex
78-
extra_headers: *hdr
78+
extra_headers: *cx_hdr
7979

8080
- model_name: openrouter/openai/gpt-4o-mini
8181
litellm_params:
8282
model: openai/openai/gpt-4o-mini
8383
litellm_credential_name: codex
84-
extra_headers: *hdr
84+
extra_headers: *cx_hdr
8585

8686
# ── Claude Code (separate billing, Anthropic only) ─────
8787
# Claude Code only uses Anthropic models. Virtual key → team
8888
# model_aliases remap: opus → cc:opus, sonnet → cc:sonnet, etc.
8989
- model_name: cc:opus
90-
litellm_params: {<<: *opus, litellm_credential_name: claude-code}
90+
litellm_params:
91+
<<: *opus
92+
litellm_credential_name: claude-code
93+
extra_headers: &cc_hdr
94+
X-Title: claude-code
95+
HTTP-Referer: *referer
9196

9297
- model_name: cc:sonnet
93-
litellm_params: {<<: *sonnet, litellm_credential_name: claude-code}
98+
litellm_params:
99+
<<: *sonnet
100+
litellm_credential_name: claude-code
101+
extra_headers: *cc_hdr
94102

95103
- model_name: cc:haiku
96-
litellm_params: {<<: *haiku, litellm_credential_name: claude-code}
104+
litellm_params:
105+
<<: *haiku
106+
litellm_credential_name: claude-code
107+
extra_headers: *cc_hdr
97108

98109
litellm_settings:
99110
drop_params: true
100111
num_retries: 3
101112
request_timeout: 120
102-
health_check_interval: 0
103-
104113
general_settings:
105114
master_key: os.environ/LITELLM_MASTER_KEY
106115
database_url: os.environ/LITELLM_DATABASE_URL
116+
background_health_checks: false

0 commit comments

Comments
 (0)