Skip to content

Catalog advertises reasoning effort ultra for gpt-6-astra and gpt-6.1-sol, but the upstream rejects it with HTTP 400 #7590

Closed

Description

@vibewriter-hand

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-637 folds ultra to max, but only into options.reasoning.
  • src/responses/parser.ts:670 keeps the caller's original body in _rawBody.
  • src/adapters/openai-responses/passthrough.ts:533 builds finalBody from that raw body and serializes it, so reasoning.effort: "ultra" reaches the upstream unchanged.
  • src/server/effort-policy.ts:167-189 rewrites effort only when a cap or a pinned effort is configured; neither is set here.
  • src/server/index/serve-options.ts:1152-1158 emits reasoning_efforts straight 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

  1. 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"}]}
  1. 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}'
  1. 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

  1. added
    bug
    catalog
    on Oct 23, 2026
  2. Ingwannu commented on Oct 23, 2026

    @Ingwannu
    Owner

    Confirmed the normalization mismatch in the current source: parser normalization of options.reasoning does 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 ultra to the native wire value max, 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.

  3. lidge-jun commented on Oct 23, 2026

    @lidge-jun
    Owner

    Fixed on dev by #7600 (e033111ccb): a request that selects ultra on a native model now reaches the ChatGPT backend as max, so it no longer fails with HTTP 400. Two defects combined: the native clamp skipped ultra when the model's stored ladder listed it (gpt-6-astra, gpt-6.1-sol), and the passthrough kept the caller's raw ultra in the wire body. The catalog still lists ultra as a client-facing choice, following the existing Codex policy of folding it to max. Closing manually because GitHub only auto-closes from main; it ships in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcatalog

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions