GeezerVison is showing github.com — [FEATURE]: enable responses API in openai compatible provider · Issue #9628 · anomalyco/opencode
[FEATURE]: enable responses API in openai compatible provider #9628DescriptionFeature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
We need an option for OpenAI compatible models like suggested in #5866 as well. I think it should be the default to use responses API for models that are intenfed to be used that way, like codex, same as proposed in above issue Reacted by Simon Knittel, Hēsperus and Enty Reacted by Quack, jiminj-nvidia, Anchit Bajaj, Vonfry, Ryan, Arsham Shirvani, PatrickPjt, John Brock, Brian Martin, Yevhen Salitrynskyi and 6 more Activitygithub-actions commented on Jan 20, 2026 This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case. Vonfry commented on Jan 27, 2026 For responses api, you can use "@ai-sdk/openai" directly, IMO.
For example:
custom-provider = {
npm = "@ai-sdk/openai";
name = "OpenAI proxy";
options = {
apiKey = "{file:...}";
baseURL = "https://.../v1";
};
models = {
"gpt-5.2-codex" = {
name = "GPT!";
};
};
};Reacted by Álvaro Sánchez-Mariscal, 鐘翊修 and Kevin Weis DeluxeOwl commented on Feb 6, 2026 The solution above doesn't show reasoning Vonfry commented on Feb 6, 2026 Do you try following configurations:
options = {
reasoningEffort = "xhigh";
textVerbosity = "high";
reasoningSummary = "detailed";
};rekram1-node commented on Mar 25, 2026 You can already do this:
"my-custom-provider": {
"api": "https://my-provider.api.io/inference",
"npm": "@ai-sdk/openai-compatible",
"models": {
"gpt-4.1": {},
"gpt-5.3-codex": {
"provider": {
"npm": "@ai-sdk/openai",
},
},
},
},
When u use the openai-compatible provider it only supports completions, if u want to use responses u need to use ai-sdk/openai instead, just make sure the url is setup correctly.
U can override the baseline provider settings per model (see ex) PadishahIII commented on Apr 24, 2026 github-actions commented on Jul 6, 2026 To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|