fix(provider): add thinking level variants for GitHub Copilot Claude models#15167
Open
zhzy0077 wants to merge 1 commit intoanomalyco:devfrom
Open
fix(provider): add thinking level variants for GitHub Copilot Claude models#15167zhzy0077 wants to merge 1 commit intoanomalyco:devfrom
zhzy0077 wants to merge 1 commit intoanomalyco:devfrom
Conversation
…models Restore low/medium/high/max thinking budget variants for Claude models on the GitHub Copilot provider. Budget caps for high and max are dynamically computed from the model's output limit, matching the direct Anthropic SDK behavior. Closes anomalyco#11627 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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.
Issue for this PR
Closes #11627
Type of change
What does this PR do?
Restores thinking level variant selection for Claude models on the GitHub Copilot provider. In v1.1.48, the variant regressed to a single hardcoded
thinking_budget: 4000under a non-standard"thinking"key.This change:
low(1024),medium(4000),high, andmaxthinking budget variantshighatmin(16_000, floor(output_limit / 2 - 1))andmaxatmin(31_999, output_limit - 1), matching the direct@ai-sdk/anthropicprovider logicHow did you verify your code works?
bun turbo typecheck)bun turbo build)@ai-sdk/anthropicpattern at lines 543/549 oftransform.tsScreenshots / recordings
N/A - no UI change
Checklist