Skip to content

Commit 56bd80c

Browse files
Update Anthropic model identifiers
1 parent dc7411f commit 56bd80c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

action.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ module.exports = async ({ github, context, inputs, actionPath }) => {
2020
amplification: '4',
2121
filterdiff_args: '--exclude=**/package-lock.json --exclude=**/yarn.lock --exclude=**/*.js.map --exclude=**/*.svg --exclude=**/test/data/**/* --exclude=**/docs/**/* --exclude=**/deploy/**/* --exclude=**/.htpasswd',
2222
openai_models: 'gpt-5.3-codex',
23-
anthropic_models: 'claude-opus-4-6',
24-
bedrock_models: 'global.anthropic.claude-opus-4-6-v1:0',
23+
anthropic_models: 'claude-opus-4-7',
24+
bedrock_models: 'global.anthropic.claude-opus-4-7-v1:0',
2525
owner: context.repo.owner,
2626
repo: context.repo.repo,
2727
prnum: context.issue.number,

src/anthropicExplainPatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { SYSTEM_PROMPT, explainPatchHelper } from './utils.js'
55
/* eslint-disable camelcase */
66
export default async function explainPatch ({
77
apiKey, patchBody, owner, repo,
8-
models = ['claude-opus-4-6'],
8+
models = ['claude-opus-4-7'],
99
system = SYSTEM_PROMPT,
1010
max_tokens = 3072,
1111
temperature = 1,

src/bedrockExplainPatch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const COUNT_TOKENS_HASHFUN = {
2525
'anthropic.claude-instant-v1': anthropicCountTokens,
2626
'anthropic.claude-3-7-sonnet-20250219-v1:0': anthropicCountTokens,
2727
'anthropic.claude-sonnet-4-20250514-v1:0': anthropicCountTokens,
28+
'global.anthropic.claude-opus-4-7-v1:0': anthropicCountTokens,
29+
'global.anthropic.claude-sonnet-4-6-v1:0': anthropicCountTokens,
2830
'global.anthropic.claude-opus-4-6-v1:0': anthropicCountTokens,
2931
'anthropic.claude-opus-4-20250514-v1:0': anthropicCountTokens,
3032
'global.anthropic.claude-sonnet-4-5-20250929-v1:0': anthropicCountTokens,
@@ -58,7 +60,7 @@ const countTokens = (text, modelId) => {
5860
/* eslint-disable camelcase */
5961
export default async function explainPatch ({
6062
patchBody, owner, repo,
61-
models = ['global.anthropic.claude-opus-4-6-v1:0'],
63+
models = ['global.anthropic.claude-opus-4-7-v1:0'],
6264
system = SYSTEM_PROMPT,
6365
max_tokens = 3072,
6466
temperature = 1,

0 commit comments

Comments
 (0)