Commit c550fff
fix(litellm): route codex CLI (cloud-codex) through the /responses path
The codex CLI speaks wire_api="responses" and hits LiteLLM's /v1/responses
endpoint, not /chat/completions. On that path the chatgpt provider's
get_complete_url already targets /responses, so the `responses/` prefix the
chat-path aliases carry is redundant and gets sent literally to OpenAI as
`responses/gpt-5.4` -> 400 "model not supported". Cody (cloud-codex) was
pointed at the prefixed `gpt-5.4` alias and silently fell back to Nemotron.
- Add `codex-cli/gpt-5.4` -> `chatgpt/gpt-5.4` (no prefix) for the /responses path
- Point Cody's config.toml at the new alias
- Re-path the responses-input patch from the nonexistent /usr/lib/... to
litellm.__file__ (/app/litellm) so it actually applies — OpenAI's /responses
rejects a bare-string input ("Input must be a list"); the patch wraps it
Verified end-to-end via litellm.aresponses: real codex (served=gpt-5.4 /
gpt-5.4-mini-2026-03-17). Single LiteLLM auth surface for the CLI, as intended.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 20647ab commit c550fff
3 files changed
Lines changed: 37 additions & 7 deletions
File tree
- k8s/helm/commonly/templates
- agents
- configmaps
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
| |||
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | | - | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | | - | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
| |||
253 | 270 | | |
254 | 271 | | |
255 | 272 | | |
| 273 | + | |
256 | 274 | | |
257 | 275 | | |
258 | 276 | | |
| |||
0 commit comments