Skip to content

Feature request: Add OpenAI Responses API support #804

Closed

Description

@EvenZ2001

Feature request: Add OpenAI Responses API support

Hello Command Code team,

Thank you for providing an OpenAI-compatible Provider API. The current API documentation lists support for:

  • /v1/chat/completions
  • /v1/messages

Could you consider adding support for the OpenAI Responses API, for example:

POST https://api.commandcode.ai/provider/v1/responses

Responses API support would allow Command Code models to work with current OpenAI SDK clients and agent frameworks that use client.responses.create(), rather than the older Chat Completions interface.

Ideally, the endpoint could support the standard Responses API fields and behavior, including:

  • input
  • instructions
  • tools
  • stream
  • previous_response_id
  • structured response output

The existing Chat Completions endpoint could remain available for backward compatibility.

This would make the Provider API compatible with a broader range of current OpenAI SDKs and agent tools. Thank you for considering it.

Activity

  1. EvenZ2001 commented on Sep 6, 2026

    @EvenZ2001
    Author

    nobody reply?

  2. ahmadbilaldev commented on Sep 7, 2026

    @ahmadbilaldev
    Contributor

    @EvenZ2001 It has only been two days since you posted, none of which are weekdays. Some patience here will be appreciated.

    Responses API support is in our roadmap, I'll update when it is shipped. Thanks for the feature req.

  3. self-assigned this
    on Sep 7, 2026
  4. Liang-Psych commented on Sep 10, 2026

    @Liang-Psych

    Hi team — another +1 for this.

    Responses API support would let Command Code drop straight into OpenAI SDK / Codex-style clients using client.responses.create() — including previous_response_id, structured output, and streamed tool calls. Related issues #738 (reasoning_summary_part) and #745 (Codex tool_search) show this wire format already trips things up for BYOK providers; fixing /provider/v1/responses properly would likely clear a cluster of them at once.

    If a preview/beta endpoint is available, I'm happy to dogfood it and report back with detailed stream traces. Could you add a milestone or share a rough ETA so we can plan around it? Thanks!

  5. Liang-Psych commented on Sep 10, 2026

    @Liang-Psych

    Filed the same request through the official feature-request template per Discord guidance: #832. Linking the two so they can be tracked (or merged) together — happy to close either as duplicate if that's cleaner.

  6. Jovan1666 commented on Sep 13, 2026

    @Jovan1666

    +1, with hard evidence that this is now the only path to Codex support — not a convenience.

    Codex has removed the Chat Completions wire protocol outright. On codex-cli 0.154.0-alpha.6.2, setting a provider to the Chat wire API fails at config load:

    Error loading config.toml: `wire_api = "chat"` is no longer supported.
    How to fix: set `wire_api = "responses"` in your provider config.
    More info: https://github.com/openai/codex/discussions/7782
    

    So current Codex can only speak Responses (openai/codex#31083 is an open request to re-add Chat support).

    Since POST /provider/v1/responses returns 404 ("... is not a registered API route"), every Codex + Command Code setup today requires a local Responses→Chat translation proxy.

    That translation layer is where the interop bugs concentrate. #795 (messages.N.content on image-bearing tool outputs) and #745 (tool_search invocations) are both Responses-vs-Chat wire-format gaps that a native implementation would have to handle directly, instead of every client shim reimplementing them by hand.

    A native /provider/v1/responses would let Codex point straight at https://api.commandcode.ai/provider/v1 with zero translation and remove that whole class of bugs at once.

    Happy to dogfood a preview endpoint and send detailed stream traces.

  7. ahmadbilaldev commented on Sep 17, 2026

    @ahmadbilaldev
    Contributor

    Responses support is live. Most open models and openai models are now available on the responses endpoint. More info in docs.

  8. EvenZ2001 commented on Sep 18, 2026

    @EvenZ2001
    Author

    Follow-up now that Responses is live: /v1/responses rejects any non-function entry in tools and returns 400 before the model runs, so Codex (which always sends a mixed tool array) still can't use the endpoint. Filed as #885 with the exact error body and param: tools.8.type.

    Repro summary: point any client at https://api.commandcode.ai/provider/v1 with wire_api = "responses" and send a request whose tools array contains anything other than type: "function". Expected behavior is to accept the declaration and skip executing the unsupported built-in tool, not to fail the whole request.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions