chore: update model IDs in docs and workflows to current models

claude-3-7-sonnet-20250219 was retired on 2026-02-19 and now returns 404,
and claude-opus-4-1-20250805 is deprecated (retires 2026-08-05). Replace
with claude-sonnet-4-6 / claude-opus-4-8 for the Anthropic API and the
dated Sonnet 4.5 IDs for the Bedrock/Vertex provider-specific formats.
This commit is contained in:
Mark Wylde
2026-06-11 20:55:26 +01:00
parent 3001087463
commit ba45e9da7a
2 changed files with 9 additions and 9 deletions

View File

@@ -37,4 +37,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
claude_args: | claude_args: |
--allowedTools "Bash(bun install),Bash(bun test:*),Bash(bun run format),Bash(bun typecheck)" --allowedTools "Bash(bun install),Bash(bun test:*),Bash(bun run format),Bash(bun typecheck)"
--model "claude-opus-4-1-20250805" --model "claude-opus-4-8"

View File

@@ -61,8 +61,8 @@ Add the following to your workflow file:
with: with:
prompt: "Review and fix TypeScript errors" prompt: "Review and fix TypeScript errors"
claude_args: | claude_args: |
--model claude-opus-4-1-20250805 --model claude-opus-4-8
--fallback-model claude-sonnet-4-20250514 --fallback-model claude-sonnet-4-6
--allowedTools "Bash(git:*),View,GlobTool,GrepTool,BatchTool" --allowedTools "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -174,7 +174,7 @@ Provide the settings configuration directly as a JSON string:
prompt: "Your prompt here" prompt: "Your prompt here"
settings: | settings: |
{ {
"model": "claude-opus-4-1-20250805", "model": "claude-opus-4-8",
"env": { "env": {
"DEBUG": "true", "DEBUG": "true",
"API_URL": "https://api.example.com" "API_URL": "https://api.example.com"
@@ -356,7 +356,7 @@ Use provider-specific model names via `--model` in `claude_args` based on your c
uses: anthropics/claude-code-base-action@beta uses: anthropics/claude-code-base-action@beta
with: with:
prompt: "Your prompt here" prompt: "Your prompt here"
claude_args: --model claude-3-7-sonnet-20250219 claude_args: --model claude-sonnet-4-6
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# For Amazon Bedrock (requires OIDC authentication) # For Amazon Bedrock (requires OIDC authentication)
@@ -370,7 +370,7 @@ Use provider-specific model names via `--model` in `claude_args` based on your c
uses: anthropics/claude-code-base-action@beta uses: anthropics/claude-code-base-action@beta
with: with:
prompt: "Your prompt here" prompt: "Your prompt here"
claude_args: --model anthropic.claude-3-7-sonnet-20250219-v1:0 claude_args: --model anthropic.claude-sonnet-4-5-20250929-v1:0
use_bedrock: "true" use_bedrock: "true"
# For Google Vertex AI (requires OIDC authentication) # For Google Vertex AI (requires OIDC authentication)
@@ -384,7 +384,7 @@ Use provider-specific model names via `--model` in `claude_args` based on your c
uses: anthropics/claude-code-base-action@beta uses: anthropics/claude-code-base-action@beta
with: with:
prompt: "Your prompt here" prompt: "Your prompt here"
claude_args: --model claude-3-7-sonnet@20250219 claude_args: --model claude-sonnet-4-5@20250929
use_vertex: "true" use_vertex: "true"
``` ```
@@ -405,7 +405,7 @@ This example shows how to use OIDC authentication with AWS Bedrock:
prompt: "Your prompt here" prompt: "Your prompt here"
use_bedrock: "true" use_bedrock: "true"
claude_args: | claude_args: |
--model anthropic.claude-3-7-sonnet-20250219-v1:0 --model anthropic.claude-sonnet-4-5-20250929-v1:0
--allowedTools "Bash(git:*),View,GlobTool,GrepTool,BatchTool" --allowedTools "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
``` ```
@@ -426,7 +426,7 @@ This example shows how to use OIDC authentication with GCP Vertex AI:
prompt: "Your prompt here" prompt: "Your prompt here"
use_vertex: "true" use_vertex: "true"
claude_args: | claude_args: |
--model claude-3-7-sonnet@20250219 --model claude-sonnet-4-5@20250929
--allowedTools "Bash(git:*),View,GlobTool,GrepTool,BatchTool" --allowedTools "Bash(git:*),View,GlobTool,GrepTool,BatchTool"
``` ```