fix(llm): preserve native provider options#29025
Open
rekram1-node wants to merge 1 commit into
Open
Conversation
ab7ae0b to
0443b74
Compare
0443b74 to
6aaaac2
Compare
This was referenced May 24, 2026
|
尽快合并这个分支吧😭 |
Collaborator
Author
|
@lc8882972 just do this:
If u have that env var set this code path isnt ever hit (it isnt hit by default but this will ensure its not hit otherwise either). |
This was referenced May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
A native OpenAI-compatible tool continuation could omit prior assistant
reasoning_content, causing DeepSeek thinking-mode requests to fail with HTTP 400. Auditing the local AI SDK source also found additional native option gaps for Responses and Anthropic models that opencode currently emits.Changes
reasoning_contentandreasoning_detailscontinuations and streaming deltasreasoningEffort,textVerbosity) while passing provider-specific compatible extensions throughinclude, cache, reasoning, service, and continuation-related wire optionsVerification
cd packages/llm && bun test test/provider/openai-compatible-chat.test.ts test/provider/openai-responses.test.ts test/provider/openai-chat.test.ts test/provider/anthropic-messages.test.ts && bun typecheckcd packages/opencode && bun test test/session/llm-native.test.ts test/session/llm.test.ts test/session/llm-native-recorded.test.ts && bun typecheckgit diff --check