-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Upgrade Claude model from opus-4-6 to opus-4-7 #1227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,4 +25,4 @@ | |
| prompt: "/review-pr REPO: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }}" | ||
| claude_args: | | ||
| --allowedTools "mcp__github_inline_comment__create_inline_comment" | ||
| --model "claude-opus-4-6" | ||
| --model "claude-opus-4-7" | ||
|
Check failure on line 28 in .github/workflows/claude-review.yml
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 The model ID
claude-opus-4-7does not exist — the latest released Opus model isclaude-opus-4-6. Passing this via--modelwill cause the Anthropic API to reject every request with a model-not-found error, breaking both the PR review workflow and the @claude mention workflow on every invocation. The same invalid ID is also set in.github/workflows/claude.ymlline 39; revert both toclaude-opus-4-6.Extended reasoning...
What the bug is
This PR changes the
--modelflag in two workflow files fromclaude-opus-4-6toclaude-opus-4-7. However,claude-opus-4-7is not a valid Anthropic model ID. The most recent Claude model family is 4.5/4.6, and the latest released Opus model is Opus 4.6 with IDclaude-opus-4-6. No Opus 4.7 model has been announced or released.Code path that triggers it
The
claude_argsinput is passed verbatim to the Claude Code CLI. In both workflows:The action forwards
--model claude-opus-4-7directly to the CLI, which sends it as themodelparameter in the Messages API request. The Anthropic API validates model IDs strictly and returns a 404not_found_error("model: claude-opus-4-7") for unknown IDs.Why nothing prevents it
Grepping the entire repository for
opus-4-7or4.7returns only the two lines this PR introduces — there is no model alias table, no validation layer, no fallback, and no documentation or CHANGELOG entry referencing a 4.7 model. The action does not validate or remap the model string; it is a pass-through.Impact
.github/workflows/claude-review.ymlruns on everypull_request: openedevent → every newly opened PR will get a failed review job instead of a code review..github/workflows/claude.ymlruns on every@claudemention in issues/comments/reviews → every user invocation will fail with an API error.Both workflows become 100% non-functional immediately after merge.
Step-by-step proof
--model "claude-opus-4-7".claude-review.ymltriggers.claude --allowedTools ... --model claude-opus-4-7.POST /v1/messageswith"model": "claude-opus-4-7".{"type":"error","error":{"type":"not_found_error","message":"model: claude-opus-4-7"}}.@claudecomment viaclaude.yml.Fix
Revert both lines to
--model "claude-opus-4-6"(the actual latest Opus). If the intent is to upgrade when 4.7 ships, this PR should be held until that model ID is live in the API.