Skip to content

Action uses non-existent model when no model is specified then fails #1416

Description

@paulyhedral

Describe the bug
Action falls back to non-existent model when no model is specified.

To Reproduce
Steps to reproduce the behavior:

  1. Create workflow that uses this action
  2. Do not specify model in claude_args:
  3. Run workflow

Expected behavior
The action should use only models that exist.

Screenshots

  "result": "API Error: 404 {\"type\":\"error\",\"error\":{\"type\":\"not_found_error\",\"message\":\"model: claude-sonnet-4-20250514\"},\"request_id\":\"req_011Cc7Y1xqeS9nphNaytZBrn\"}",

Workflow yml file

        uses: anthropics/claude-code-action@v1
        timeout-minutes: 60
        with:
          anthropic_api_key: XXX
          prompt: XXX

API Provider

[x] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1Showstopper bug preventing substantial subset of users from using the product, or incorrect docsprovider:1pAnthropic First-Party API

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions