docs: update README examples to use 'model' parameter correctly
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -256,7 +256,7 @@ Use a specific Claude model:
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: anthropics/claude-code-action@beta
|
- uses: anthropics/claude-code-action@beta
|
||||||
with:
|
with:
|
||||||
anthropic_model: "claude-3-7-sonnet-20250219"
|
# model: "claude-3-5-sonnet-20241022" # Optional: specify a different model
|
||||||
# ... other inputs
|
# ... other inputs
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -284,21 +284,20 @@ Use provider-specific model names based on your chosen provider:
|
|||||||
# For direct Anthropic API (default)
|
# For direct Anthropic API (default)
|
||||||
- uses: anthropics/claude-code-action@beta
|
- uses: anthropics/claude-code-action@beta
|
||||||
with:
|
with:
|
||||||
anthropic_model: "claude-3-7-sonnet-20250219"
|
|
||||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
# ... other inputs
|
# ... other inputs
|
||||||
|
|
||||||
# For Amazon Bedrock with OIDC
|
# For Amazon Bedrock with OIDC
|
||||||
- uses: anthropics/claude-code-action@beta
|
- uses: anthropics/claude-code-action@beta
|
||||||
with:
|
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"
|
use_bedrock: "true"
|
||||||
# ... other inputs
|
# ... other inputs
|
||||||
|
|
||||||
# For Google Vertex AI with OIDC
|
# For Google Vertex AI with OIDC
|
||||||
- uses: anthropics/claude-code-action@beta
|
- uses: anthropics/claude-code-action@beta
|
||||||
with:
|
with:
|
||||||
anthropic_model: "claude-3-7-sonnet@20250219"
|
model: "claude-3-7-sonnet@20250219"
|
||||||
use_vertex: "true"
|
use_vertex: "true"
|
||||||
# ... other inputs
|
# ... other inputs
|
||||||
```
|
```
|
||||||
@@ -324,7 +323,7 @@ Both AWS Bedrock and GCP Vertex AI require OIDC authentication.
|
|||||||
|
|
||||||
- uses: anthropics/claude-code-action@beta
|
- uses: anthropics/claude-code-action@beta
|
||||||
with:
|
with:
|
||||||
anthropic_model: "anthropic.claude-3-7-sonnet-20250219-beta:0"
|
model: "anthropic.claude-3-7-sonnet-20250219-beta:0"
|
||||||
use_bedrock: "true"
|
use_bedrock: "true"
|
||||||
# ... other inputs
|
# ... other inputs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user