Incorrect model IDs for Vertex Anthropic #6900

Open
opened 2026-02-16 18:05:33 -05:00 by yindo · 1 comment
Owner

Originally created by @eparreno on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @eparreno on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. ### 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 <img width="444" height="119" alt="Image" src="https://github.com/user-attachments/assets/55e587af-5f5f-404c-9c0d-f435af448908" /> ### Screenshot and/or share link _No response_ ### Operating System macOS 15.7.1 ### Terminal iTerm2
yindo added the bug label 2026-02-16 18:05:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

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

  • #7514: Bug: Shared state between google-vertex and google-vertex-anthropic providers causes auth conflict

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.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues or related to similar configuration problems. Please check: - #7514: Bug: Shared state between google-vertex and google-vertex-anthropic providers causes auth conflict 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6900