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
{{ message }}
Repository navigation
2.11.x breaks structured-output requests routed via the opencode provider (400 "This response_format type is unavailable now") #1338
Regression:
opencodex 2.11.0 began forwarding response_format to upstream in src/adapters/openai-chat.ts:
when textFormat.type === "json_schema", it sets body.response_format = { type: "json_schema", json_schema: {...} }.
The opencode-free gateway rejects this with:
Provider error 400: {"error":{"param":null,"type":"invalid_request_error","code":"invalid_request_error","message":"Error from provider (Console): Upstream request failed: [invalid_request_error] This response_format type is unavailable now"}}
Impact:
Every request that asks for structured output fails - e.g., Codex's automatic approval reviewer always uses json_schema, so all escalated tool calls fail with this 400 under deepseek. Normal (non-structured) requests succeed. 2.10.2 does not forward response_format and works fine.
Expected:
Either stop sending response_format to providers that don't support it (e.g., opencode), map json_schema to a supported format for that provider, or document the limitation.
Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.
This issue does not use a recognized issue template.
Please edit the issue to add:
Open a new issue with the Bug report, Feature request, Documentation, or Provider compatibility template.
Or edit this issue so the body uses the template section headings for the kind of report you are filing.
Activity
github-actions commentedon Aug 9, 2026
Automated translation bookkeeping — detected language: English.
github-actions commentedon Aug 9, 2026
Issue closed: use an issue template
Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.
Please edit the issue to add:
See the Contributing guide for details.
Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.