feat: add Claude Opus 4.7 model support#203
Merged
griffinmartin merged 2 commits intogriffinmartin:mainfrom Apr 16, 2026
Merged
feat: add Claude Opus 4.7 model support#203griffinmartin merged 2 commits intogriffinmartin:mainfrom
griffinmartin merged 2 commits intogriffinmartin:mainfrom
Conversation
Owner
|
Sonnet 4.7 doesn't exist yet to my understanding. |
Contributor
Author
|
Good catch — you're right, only Opus 4.7 is live on the API. Removed Sonnet 4.7 from the README, tests, and updated the PR title/description. Opus 4.7 verified working end-to-end with the |
|
Its out now |
Owner
Owner
|
models.dev just had 4.7 added, so the manual opencode.json change shouldn't be required much longer. |
griffinmartin
pushed a commit
that referenced
this pull request
Apr 16, 2026
🤖 I have created a release *beep* *boop* --- ## [1.5.0](v1.4.10...v1.5.0) (2026-04-16) ### Features * add Claude Opus 4.7 model support ([#203](#203)) ([cc96338](cc96338)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
Not sure if possible. Some frameworks send temperature to the models but opus 4.7 has deprecated it. Is it possible to filter this from this plugin? |
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
claude-opus-4-7model support4-7model override inmodel-config.tswitheffort-2025-11-24beta (matching existing 4-6 pattern)betas.test.tsfor opus 4.7: 1M context eligibility, effort beta inclusion, disableEffort exclusion, and default context-1m opt-outAll existing tests pass (213/213). Build, lint, and format clean.
Using 4.7 before OpenCode ships it
The plugin only handles auth and beta flags — model discovery lives in OpenCode's Anthropic provider config. Until OpenCode adds
claude-opus-4-7to their SDK, users can register it manually in theiropencode.json:```json
{
"provider": {
"anthropic": {
"models": {
"claude-opus-4-7": { "name": "Claude Opus 4.7" }
}
}
}
}
```
Tested end-to-end against Anthropic's API with an active Claude Max subscription — plugin applies the correct betas (
effort-2025-11-24, pluscontext-1m-2025-08-07when opted in) and requests complete successfully.Happy to add this snippet to the README in a follow-up (or here) if you'd like — left it out of the initial diff to keep the PR focused on plugin-side config.