[FEATURE]: enable responses API in openai compatible provider #6947

Open
opened 2026-02-16 18:05:41 -05:00 by yindo · 4 comments
Owner

Originally created by @scratchmex on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

Feature 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 https://github.com/anomalyco/opencode/issues/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

Originally created by @scratchmex on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] 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 https://github.com/anomalyco/opencode/issues/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
yindo added the discussion label 2026-02-16 18:05:41 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5866: [BUG]: GitHub Copilot Responses API routing for GPT-5+ - Already proposes adding a useResponsesApi option for OpenAI-compatible providers with similar intent
  • #7793: [Feature Request] Support traditional Chat Completions API for OpenAI provider - Related discussion on routing between Chat Completions and Responses APIs for OpenAI-compatible providers
  • #8622: gpt-5.2-codex TypeError: sdk.responses is not a function - Related bug where responses API is expected but not available

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #5866: [BUG]: GitHub Copilot Responses API routing for GPT-5+ - Already proposes adding a useResponsesApi option for OpenAI-compatible providers with similar intent - #7793: [Feature Request] Support traditional Chat Completions API for OpenAI provider - Related discussion on routing between Chat Completions and Responses APIs for OpenAI-compatible providers - #8622: gpt-5.2-codex TypeError: sdk.responses is not a function - Related bug where responses API is expected but not available Feel free to ignore if none of these address your specific case.
Author
Owner

@Vonfry commented on GitHub (Jan 26, 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!";
        };
     };
 };
@Vonfry commented on GitHub (Jan 26, 2026): For responses api, you can use "@ai-sdk/openai" directly, IMO. For example: ```nix custom-provider = { npm = "@ai-sdk/openai"; name = "OpenAI proxy"; options = { apiKey = "{file:...}"; baseURL = "https://.../v1"; }; models = { "gpt-5.2-codex" = { name = "GPT!"; }; }; }; ```
Author
Owner

@DeluxeOwl commented on GitHub (Feb 6, 2026):

The solution above doesn't show reasoning

@DeluxeOwl commented on GitHub (Feb 6, 2026): The solution above doesn't show reasoning
Author
Owner

@Vonfry commented on GitHub (Feb 6, 2026):

Do you try following configurations:

options = {
  reasoningEffort = "xhigh";
  textVerbosity = "high";
  reasoningSummary = "detailed";
};
@Vonfry commented on GitHub (Feb 6, 2026): Do you try following configurations: ```nix options = { reasoningEffort = "xhigh"; textVerbosity = "high"; reasoningSummary = "detailed"; }; ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6947