Skip to content

[Bug] v2.11.x forwards response_format to routed openai-chat providers, breaking auto-review under DeepSeek (400 'This response_format type is unavailable now') #1415

Description

@ShuaiHui

Client or integration

Codex App

Area

Provider adapter

Summary

opencodex 2.11.0+ started forwarding response_format (including json_schema) to routed openai-chat providers in src/adapters/openai-chat.ts. The DeepSeek / Console Go upstream rejects json_schema with 400 "This response_format type is unavailable now". Codex's auto-review (approvals reviewer) always requests structured output, so every escalated tool call fails under deepseek. Version 2.10.2 did not forward response_format and worked fine.

Reproduction

  1. Run opencodex 2.11.0+ with deepseek-v4-flash routed via cliproxy (opencode-go upstream).
  2. Trigger a Codex App auto-review (an escalated tool call needs approval).
  3. The reviewer request fails with the 400 below.

Normal (non-structured) requests succeed. Downgrading to 2.10.2 resolves it.

Version

2.11.1 (commit gc0a9db10f)

Operating system

macOS

Provider and model

cliproxy / deepseek-v4-flash (Console Go upstream)

Logs or error output

Provider error 400: {"error":{"param":null,"type":"invalid_request_error","code":"invalid_request_error","message":"Error from provider (Console Go): Upstream request failed: [invalid_request_error] This response_format type is unavailable now"}}

Redacted configuration

{
  "providers": {
    "cliproxy": {
      "adapter": "openai-chat",
      "baseUrl": "http://127.0.0.1:8317/v1"
    }
  }
}

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Note: related issue #1338 was auto-closed because it did not use the issue template; the underlying bug is not fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingproviderProvider adapters, OpenAI-compat presets, upstream API quirkstoolstool_calls, MCP, web-search / sidecar tools

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions