Bug Report: 404 Error with Vertex AI Provider for claude-opus-4-6 Model
Plugin Type
VSCode Extension
App Version
5.4.1
Description
Environment Extension Version: 5.4.1 Provider: Vertex AI Model requested: claude-opus-4-6@vertex Date/Time: 2025-02-09T23:25:48.499Z Description When attempting to use Claude Opus 4.6 through the Vertex AI provider, the extension returns a 404 "NOT_FOUND" error.
Error Message 404 404 [{"error":{"code":404,"message":"Requested entity was not found.","status":"NOT_FOUND"}}] Root Cause Analysis Based on official documentation research, the model ID format appears to be incorrect:
Current (incorrect): claude-opus-4-6@vertex
Correct format should be: claude-opus-4-6 (without the @vertex suffix)
According to Anthropic's official documentation (https://platform.claude.com/docs/en/build-with-claude/claude-on-vertex-ai), the correct model name is simply claude-opus-4-6:
client = AnthropicVertex(project_id=project_id, region=region) message = client.messages.create( model="claude-opus-4-6", # Note: no @vertex suffix max_tokens=100, messages=[...] ) For versioned models, the format includes a date suffix like claude-opus-4@20250514 or claude-haiku-4-5@20251001.
Expected Behavior The extension should use the correct model ID format when making requests to Vertex AI.
Suggested Fix Remove the @vertex suffix from the model ID when constructing Vertex AI API requests The model dropdown could show "Claude Opus 4.6 (Vertex AI)" for user clarity, but the actual API call should use claude-opus-4-6 Additional Context Claude Opus 4.6 is available on Vertex AI as confirmed by Google Cloud documentation Other valid model names include: claude-opus-4-5@20251101, claude-sonnet-4@20250514 Regional availability may also be a factor - the model needs to be enabled in the user's GCP region
Reproduction steps
- Configure Kilo Code with Vertex AI provider
- Select Claude Opus 4.6 model
- Attempt to make a request
- Observe 404 error due to malformed model ID
Provider
Vertex
Model
Opus 4.6
System Information
Macos