fix(opencode): rescrict github copilot opus 4.7 variants to "medium"#23097
Merged
rekram1-node merged 2 commits intoanomalyco:devfrom Apr 17, 2026
Merged
fix(opencode): rescrict github copilot opus 4.7 variants to "medium"#23097rekram1-node merged 2 commits intoanomalyco:devfrom
rekram1-node merged 2 commits intoanomalyco:devfrom
Conversation
Contributor
Author
|
I don't know if the position for the IF is the best, other option would be to put it inside the |
leohenon
pushed a commit
to leohenon/opencode-vim
that referenced
this pull request
Apr 17, 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.
Issue for this PR
Closes #23082
Type of change
What does this PR do?
Adds case for Github Copilot Provider supporting only the "medium" reasoning variant.
Was able to confirm only this
reasoning_effortfrom the error given to the user on the issue and also using the endpointhttps://api.githubcopilot.com/modelsit return the following for opus 4.7.{ "capabilities": { "family": "claude-opus-4.7", ... "supports": { "reasoning_effort": [ "medium" ] } } }How did you verify your code works?
Ran on my local dev instance and was able to only cycle from default to medium
Screenshots / recordings
Checklist