litellm - 💡(How to fix) Fix [Bug]: vertex_ai/claude-opus-4-7 fails with 404 on multi-region endpoint — eu/us locations not supported [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27293Fetched 2026-05-07 03:33:17
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
1
Timeline (top)
labeled ×3

Error Message

MaskedHTTPStatusError: Client error '404 Not Found' for url 'https://eu-aiplatform.googleapis.com/v1/projects/<project>/locations/eu/publishers/anthropic/models/claude-opus-4-7:streamRawPredict' litellm.exceptions.NotFoundError: litellm.NotFoundError: Vertex_aiException - 404 Not Found

The correct EU multi-region URL should be: https://aiplatform.eu.rep.googleapis.com/v1/projects/<project>/locations/eu/publishers/anthropic/models/claude-opus-4-7:streamRawPredict

Fix Action

Fix / Workaround

LiteLLM does not support these domains. When setting vertex_ai_location: 'eu', LiteLLM constructs https://eu-aiplatform.googleapis.com/... which is an invalid URL and returns 404. The only workaround is vertex_ai_location: 'global', which bypasses data residency requirements and is not be acceptable for EU deployments.

Code Example

MaskedHTTPStatusError: Client error '404 Not Found' for url
'https://eu-aiplatform.googleapis.com/v1/projects/<project>/locations/eu/publishers/anthropic/models/claude-opus-4-7:streamRawPredict'
litellm.exceptions.NotFoundError: litellm.NotFoundError: Vertex_aiException - 404 Not Found

The correct EU multi-region URL should be:
https://aiplatform.eu.rep.googleapis.com/v1/projects/<project>/locations/eu/publishers/anthropic/models/claude-opus-4-7:streamRawPredict
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

claude-opus-4-7 on Vertex AI is only available in multi-region (eu, us) and global endpoints — it is not available in individual regions like europe-west1. See Google's official docs (https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/opus-4-7).

The multi-region endpoint requires a different API domain:

LiteLLM does not support these domains. When setting vertex_ai_location: 'eu', LiteLLM constructs https://eu-aiplatform.googleapis.com/... which is an invalid URL and returns 404. The only workaround is vertex_ai_location: 'global', which bypasses data residency requirements and is not be acceptable for EU deployments.

Steps to Reproduce

  1. Set up a LiteLLM proxy config with claude-opus-4-7 on Vertex AI using the EU multi-region location: model_list:
  • model_name: claude-4-7-opus litellm_params: model: vertex_ai/claude-opus-4-7 vertex_ai_location: 'eu' vertex_ai_project: your-gcp-project vertex_credentials: /path/to/credentials.json
  1. Send a chat completion request to the proxy
  2. Observe the 404 error

Relevant log output

MaskedHTTPStatusError: Client error '404 Not Found' for url
'https://eu-aiplatform.googleapis.com/v1/projects/<project>/locations/eu/publishers/anthropic/models/claude-opus-4-7:streamRawPredict'
litellm.exceptions.NotFoundError: litellm.NotFoundError: Vertex_aiException - 404 Not Found

The correct EU multi-region URL should be:
https://aiplatform.eu.rep.googleapis.com/v1/projects/<project>/locations/eu/publishers/anthropic/models/claude-opus-4-7:streamRawPredict

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.83.10

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING