From d15de3a8e38783027765c731ad06b21a6c8f8e2f Mon Sep 17 00:00:00 2001 From: Lina Tawfik Date: Thu, 22 May 2025 07:22:13 -0700 Subject: [PATCH] docs: update README examples to use 'model' parameter correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Show model parameter as optional comment for direct API examples - Keep model parameter required for Bedrock and Vertex AI examples - Demonstrates the default behavior when model is not specified 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index abf402d..bad88e9 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ Use a specific Claude model: ```yaml - uses: anthropics/claude-code-action@beta with: - anthropic_model: "claude-3-7-sonnet-20250219" + # model: "claude-3-5-sonnet-20241022" # Optional: specify a different model # ... other inputs ``` @@ -284,21 +284,20 @@ Use provider-specific model names based on your chosen provider: # For direct Anthropic API (default) - uses: anthropics/claude-code-action@beta with: - anthropic_model: "claude-3-7-sonnet-20250219" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # ... other inputs # For Amazon Bedrock with OIDC - uses: anthropics/claude-code-action@beta with: - anthropic_model: "anthropic.claude-3-7-sonnet-20250219-beta:0" # Cross-region inference + model: "anthropic.claude-3-7-sonnet-20250219-beta:0" # Cross-region inference use_bedrock: "true" # ... other inputs # For Google Vertex AI with OIDC - uses: anthropics/claude-code-action@beta with: - anthropic_model: "claude-3-7-sonnet@20250219" + model: "claude-3-7-sonnet@20250219" use_vertex: "true" # ... other inputs ``` @@ -324,7 +323,7 @@ Both AWS Bedrock and GCP Vertex AI require OIDC authentication. - uses: anthropics/claude-code-action@beta with: - anthropic_model: "anthropic.claude-3-7-sonnet-20250219-beta:0" + model: "anthropic.claude-3-7-sonnet-20250219-beta:0" use_bedrock: "true" # ... other inputs