Specify API format in SDK
Resolved 💬 2 comments Opened Oct 23, 2025 by connortbot Closed Nov 15, 2025
💡 Likely answer: A maintainer (pakrym-oai, contributor)
responded on this thread — see the highlighted reply below.
What feature would you like to see?
In the SDK, as far as I know, there's no way to specify using the chat completions API. This is useful for AI Gateways that are not compatible with the Responses API.
Additional information
Would love to be able to configure:
const codex = new Codex({
baseUrl: "https://example.gateway.com/v1",
apiKey: process.env.GATEWAY_API_KEY,
wireApi: "chat"
});
2 Comments
There are no current plans to support chat completion in SDK.
(OpenAI moment to use streaming as an way to subtly make it really hard to use non-openai models)