Repository navigation
Description
Client or integration
Direct HTTP/API client
Area
Catalog / models
Summary
GET /v1/models advertises ultra as a reasoning effort for four native models, but a request that actually selects ultra is rejected with HTTP 400 by the upstream ChatGPT/Codex backend. The same request with high returns 200. The proxy forwards reasoning.effort: "ultra" unchanged, so a client that builds its reasoning picker from /v1/models offers a level that cannot be used.
Where the mapping is lost (read on main and in the published 2.91.0 tarball; source reading only, no patched build was run):
src/responses/parser.ts:635-637foldsultratomax, but only intooptions.reasoning.src/responses/parser.ts:670keeps the caller's original body in_rawBody.src/adapters/openai-responses/passthrough.ts:533buildsfinalBodyfrom that raw body and serializes it, soreasoning.effort: "ultra"reaches the upstream unchanged.src/server/effort-policy.ts:167-189rewrites effort only when a cap or a pinned effort is configured; neither is set here.src/server/index/serve-options.ts:1152-1158emitsreasoning_effortsstraight from the catalog ladder.
A fold in the outbound body (the same mapping already applied to options.reasoning), or omitting ultra from rows whose upstream refuses it, would make the catalog and the wire agree.
Two limits of this report: only direct HTTP requests were measured, so whether a real Codex client that sends ultra is also refused is unconfirmed. The upstream rejection text was observed through the proxy, not by calling the backend directly.
Reproduction
- Start the proxy (2.86.0) and read the catalog:
curl -s http://127.0.0.1:10100/v1/models \
| jq -r '.data[] | select(any(.reasoning_efforts[]?; .value=="ultra")) | .id'Result: 4 of 33 rows advertise ultra:
gpt-6-astra
gpt-6-astra--fast
gpt-6.1-sol
gpt-6.1-sol--fast
The gpt-6-astra row (trimmed):
{"id":"gpt-6-astra","supports_reasoning_effort":true,"reasoning_effort":"low","reasoning_efforts":[{"value":"low","label":"Low Effort","default":true},{"value":"medium","label":"Medium Effort"},{"value":"high","label":"High Effort"},{"value":"xhigh","label":"Xhigh Effort"},{"value":"max","label":"Max Effort"},{"value":"ultra","label":"Ultra Effort"}]}- Send a request with that advertised ladder member:
curl -s -o /tmp/r.json -w '%{http_code}\n' http://127.0.0.1:10100/v1/responses \
-H 'content-type: application/json' \
-d '{"model":"gpt-6-astra","input":[{"role":"user","content":"say ok"}],"reasoning":{"effort":"ultra"},"max_output_tokens":16}'- Repeat with
"effort":"high"for the control case.
Version
2.86.0 (npm @bitkyc08/opencodex, installed). Not fixed in 2.91.0: the published tarball has the same ultra fold at parser.ts:635-637, the same raw-body passthrough and the same ladder emission. The installed 2.86.0 was not upgraded; 2.91.0 was inspected from its npm package only.
Operating system
macOS 26.5.2 (arm64), Node v26.4.0
Provider and model
OpenAI ChatGPT/Codex backend (https://chatgpt.com/backend-api/codex) / gpt-6-astra, and the other three rows listed above that advertise ultra.
Logs or error output
/v1/responses with reasoning.effort = ultra:
HTTP 400
{"error":{"message":"Invalid value: 'ultra'. Supported values are: 'none', 'minimal', 'low', 'medium', 'high', 'xhigh', and 'max'.","type":"invalid_request_error","param":"reasoning.effort","code":"invalid_value"}}
/v1/chat/completions with reasoning_effort = ultra:
HTTP 400
{"error":{"message":"Invalid response.create payload: Invalid value: 'ultra'. Supported values are: 'none', 'minimal', 'low', 'medium', 'high', 'xhigh', and 'max'.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
The same /v1/responses request with high: HTTP 200, a normal completed response.
Screenshots and supporting files
None; the catalog row, the requests and the responses above are the whole reproduction.
Redacted configuration
Stock native provider configuration. effortCap, subagentEffortCap and per-model pinned efforts are unset, so no effort rewrite applies to this request.
Checks
- I searched existing issues and documentation.
- I removed secrets, tokens, account details, request credentials, and personal data.
Activity
Ingwannu commentedon Oct 23, 2026
Confirmed the normalization mismatch in the current source: parser normalization of
options.reasoningdoes not by itself rewrite the raw body used by native Responses passthrough. #7600 is the existing focused fix, so no duplicate patch is needed.That PR retains the client-facing catalog choice, folds native
ultrato the native wire valuemax, and applies the existing ladder clamp at the final selected route. Routed-provider effort semantics must stay independent. I am checking the direct/Chat ingress and raw-body controls; the report's measured 400/200 responses remain reporter evidence, not live provider calls performed by me. Keeping this open pending exact-head validation and integration; an open PR is not a released fix.fix(catalog): send native ultra effort as max on the wire (#7590) (#7600
lidge-jun commentedon Oct 23, 2026
Fixed on
devby #7600 (e033111ccb): a request that selectsultraon a native model now reaches the ChatGPT backend asmax, so it no longer fails with HTTP 400. Two defects combined: the native clamp skippedultrawhen the model's stored ladder listed it (gpt-6-astra, gpt-6.1-sol), and the passthrough kept the caller's rawultrain the wire body. The catalog still listsultraas a client-facing choice, following the existing Codex policy of folding it tomax. Closing manually because GitHub only auto-closes frommain; it ships in the next release.