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
Provider API /v1/responses rejects Codex's non-function tool types (tools.N.type) and breaks the endpoint for Codex #885
Follow-up to #804, which was closed after Responses support went live.
The new POST /provider/v1/responses cannot be used from Codex. Every request fails with a tool-validation error before any model output is produced.
Actual Behavior
{
"error": {
"message": "Only `type:\"function\"` tools are supported on this endpoint. Built-in tools (web_search, file_search, code_interpreter, computer_use, mcp) are not executed here.",
"param": "tools.8.type",
"type": "invalid_request_error"
}
}
The whole request is rejected with HTTP 400, so the turn never starts. Because Codex always sends a mixed tool array, there is no configuration on the client side that makes the endpoint usable.
Expected Behavior
/v1/responses should accept a normal Responses tool array from an agent client. Codex sends client-executed function tools plus non-function entries (for example the freeform customapply_patch tool, and built-in declarations such as web_search). For tool types the endpoint does not execute, accepting the declaration and ignoring it is fine and is what other Responses-compatible gateways do; rejecting the entire request is not.
Steps to reproduce
Point a client at https://api.commandcode.ai/provider/v1 with wire_api = "responses".
Send any Codex request. The tool array contains non-function entries (the failing one is at index 8 in this case).
The endpoint returns HTTP 400 with the message above.
Activity
ahmadbilaldev commentedon Sep 18, 2026
Taking a look
EvenZ2001 commentedon Sep 19, 2026
it's fixed, thanks