fix(opencode): support responses wire mode for openai-compatible gpt-5#16255
fix(opencode): support responses wire mode for openai-compatible gpt-5#16255andyWang1688 wants to merge 2 commits intoanomalyco:devfrom
Conversation
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR:
The current PR (#16255) appears to be a refinement/alternative solution to the issue previously tackled in #14783, adding support for an optional |
|
Thanks! I know this overlaps with #14783 on the core bug fix (avoiding This PR keeps that same default fix, and additionally adds an optional responses path via provider..options.wireApi = "responses" (wire_api also supported) for providers that support /v1/responses. If maintainers prefer the smallest possible change, I can split this and keep only the minimal bug fix in this PR (or open a follow-up for the responses-wire part). Happy to adjust to whichever merge strategy you prefer. |
Issue for this PR
Closes #16154
Type of change
What does this PR do?
@ai-sdk/openai-compatibledefault behavior that sent incompatiblereasoningSummaryon chat-style requests.wireApi: \"responses\"(orwire_api) for openai-compatible providers.openaiand uses responses model loading so reasoning options map correctly.How did you verify your code works?
packages/opencode/test/provider/transform.test.tsfor:reasoningSummaryreasoningSummaryopenaikey in responses modeScreenshots / recordings
N/A (non-UI change)
Checklist