Skip to content

Incorrect model IDs for Vertex Anthropic #9565

Closed

Description

@eparreno

Description

The model IDs currently have the date claude-haiku-4-5@20251001 but if you check Vertex examples, the date is not needed to make API calls. I tried in OpenCode and it fails with the date, it should be removed. Before opening a PR I'd like to make sure I'm not missing anything.

ENDPOINT="aiplatform.googleapis.com"
LOCATION_ID="global"
PROJECT_ID="foo"
MODEL_ID="claude-haiku-4-5"
METHOD="streamRawPredict"

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

With these settings, spent is always 0

    "google-vertex-anthropic":{
      "name": "Anthropic",
      "whitelist": ["claude-sonnet-4-5", "claude-haiku-4-5"],
      "models": {
        "claude-sonnet-4-5": {
          "name": "Claude Sonnet 4.5",
        },
        "claude-haiku-4-5": {
          "name": "Claude Haiku 4.5",
        },
      }
    },

Adding the date suffix to match what's in models.dev, OpenCode can't find the model

    "google-vertex-anthropic":{
      "name": "Anthropic",
      "whitelist": ["claude-sonnet-4-5@20250929", "claude-haiku-4-5@20251001"],
      "models": {
        "claude-sonnet-4-5@20250929": {
          "name": "Claude Sonnet 4.5",
        },
        "claude-haiku-4-5@20251001": {
          "name": "Claude Haiku 4.5",
        },
      }
    },

you get this error

Image

Screenshot and/or share link

No response

Operating System

macOS 15.7.1

Terminal

iTerm2

Activity

  1. github-actions commented on Jan 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues or related to similar configuration problems. Please check:

    While not an exact duplicate, #7514 indicates there are known configuration issues with the google-vertex-anthropic provider that might be related to the model ID format problem described here.

  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions