litellm - ✅(Solved) Fix [Bug]: Vertex Qwen qwen3-235b-a22b-instruct-2507-maas is missing us-south1 in supported_regions [1 pull requests, 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#25380Fetched 2026-04-09 07:52:23
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1

Root Cause

That makes the root cause much clearer:

Fix Action

Fix / Workaround

  • model_name: qwen3-pt litellm_params: model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas vertex_project: os.environ/VERTEXAI_PROJECT vertex_location: us-south1 vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS extra_headers: X-Vertex-AI-LLM-Request-Type: dedicated
  To work around this, I had to patch LiteLLM's local model cost map by adding us-south1 to:

and then mount that patched JSON over LiteLLM's packaged backup cost map.

5. Apply a workaround by patching the cost map:

PR fix notes

PR #25382: fix(cost-map): add us-south1 to vertex qwen3-235b-a22b-instruct-2507-maas

Description (problem / solution / changelog)

Refs #25380

Summary

Add us-south1 to supported_regions for the Vertex Qwen model:

vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas

This updates both:

  • model_prices_and_context_window.json
  • litellm/model_prices_and_context_window_backup.json

Why

LiteLLM's packaged metadata currently lists only:

["global"]

for this model.

When LiteLLM is configured to use this Vertex Qwen model in us-south1, it warns that the region is unsupported and routes to global instead.

Observed warning:

Vertex AI model 'qwen/qwen3-235b-a22b-instruct-2507-maas' does not support region 'us-south1' (supported: ['global']). Routing to 'global'.

I also verified the packaged metadata inside the latest Docker image:

ghcr.io/berriai/litellm:main-stable

and it currently reports:

["global"]

for this model's supported_regions.

What changed

Added us-south1 to:

  "vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas": {
    "supported_regions": [
      "global",
      "us-south1"
    ]
  }

Validation

This matches working behavior against Vertex AI for the same model in us-south1.

As a local workaround before this patch, overriding LiteLLM's cost map to add us-south1 removed the warning and allowed the expected us-south1 configuration to work correctly.

Changed files

  • litellm/model_prices_and_context_window_backup.json (modified, +2/-1)
  • model_prices_and_context_window.json (modified, +2/-1)

Code Example

- model_name: qwen3-paygo
    litellm_params:
      model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
      vertex_project: os.environ/VERTEXAI_PROJECT
      vertex_location: us-south1
      vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
      extra_headers:
        X-Vertex-AI-LLM-Request-Type: shared

  - model_name: qwen3-pt
    litellm_params:
      model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
      vertex_project: os.environ/VERTEXAI_PROJECT
      vertex_location: us-south1
      vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
      extra_headers:
        X-Vertex-AI-LLM-Request-Type: dedicated

---

- model_name: qwen3-paygo
    litellm_params:
      model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
      vertex_project: os.environ/VERTEXAI_PROJECT
      vertex_location: us-south1
      vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
      extra_headers:
        X-Vertex-AI-LLM-Request-Type: shared

  - model_name: qwen3-pt
    litellm_params:
      model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
      vertex_project: os.environ/VERTEXAI_PROJECT
      vertex_location: us-south1
      vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
      extra_headers:
        X-Vertex-AI-LLM-Request-Type: dedicated

---

{"message": "Vertex AI model 'qwen/qwen3-235b-a22b-instruct-2507-maas' does not support region 'us-south1' (supported: ['global']). Routing to 'global'.", "level": "WARNING", "timestamp": "<redacted-timestamp>"}

---

litellm-proxy  | {"message": "Vertex AI model 'qwen/qwen3-235b-a22b-instruct-2507-maas' does not support region 'us-south1' (supported: ['global']). Routing to 'global'.", "level": "WARNING", "timestamp": "2026-04-08T20:03:23.481696"}
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?

LiteLLM's packaged model metadata for the Vertex Qwen model

vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas

does not include us-south1 in supported_regions.

My LiteLLM proxy config uses this model in us-south1:

- model_name: qwen3-paygo
  litellm_params:
    model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
    vertex_project: os.environ/VERTEXAI_PROJECT
    vertex_location: us-south1
    vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
    extra_headers:
      X-Vertex-AI-LLM-Request-Type: shared

- model_name: qwen3-pt
  litellm_params:
    model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
    vertex_project: os.environ/VERTEXAI_PROJECT
    vertex_location: us-south1
    vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
    extra_headers:
      X-Vertex-AI-LLM-Request-Type: dedicated

To work around this, I had to patch LiteLLM's local model cost map by adding us-south1 to:

vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas.supported_regions

and then mount that patched JSON over LiteLLM's packaged backup cost map.

Expected behavior: LiteLLM should ship the correct supported_regions metadata for this Vertex Qwen model so us-south1 works without a local cost-map override.

Steps to Reproduce

  1. Start LiteLLM Proxy without any local cost-map override, with a config that routes this model to us-south1:
- model_name: qwen3-paygo
  litellm_params:
    model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
    vertex_project: os.environ/VERTEXAI_PROJECT
    vertex_location: us-south1
    vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
    extra_headers:
      X-Vertex-AI-LLM-Request-Type: shared

- model_name: qwen3-pt
  litellm_params:
    model: vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas
    vertex_project: os.environ/VERTEXAI_PROJECT
    vertex_location: us-south1
    vertex_credentials: os.environ/GOOGLE_APPLICATION_CREDENTIALS
    extra_headers:
      X-Vertex-AI-LLM-Request-Type: dedicated
  1. Send a request through the proxy to one of those aliases.
  2. Observe that LiteLLM warns that the model does not support us-south1 and routes to global instead.
  3. Inspect the packaged LiteLLM cost map inside the image:

docker run --rm --entrypoint python ghcr.io/berriai/litellm:v1.81.9-stable -c 'import json; p="/usr/lib/python3.13/site-packages/litellm/model_prices_and_context_window_backup.json"; d=json.load(open(p)); print(d["ver tex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas"].get("supported_regions"))'

This prints:

['global']

  1. Apply a workaround by patching the cost map:

."vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas".supported_regions |= ((. // []) + ["us-south1"] | unique)

  1. Mount the patched JSON over LiteLLM's packaged backup cost map and enable LITELLM_LOCAL_MODEL_COST_MAP=True.

After that, the warning goes away and the model metadata shows ["global", "us-south1"].

Relevant log output

{"message": "Vertex AI model 'qwen/qwen3-235b-a22b-instruct-2507-maas' does not support region 'us-south1' (supported: ['global']). Routing to 'global'.", "level": "WARNING", "timestamp": "<redacted-timestamp>"}

Packaged LiteLLM metadata inside v1.81.9-stable:

['global']

Packaged LiteLLM metadata inside main-stable:

['global']

{ "vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas": { "supported_regions": [ "global", "us-south1" ] } }

That makes the root cause much clearer:

  • LiteLLM’s built-in metadata says only global
  • LiteLLM logs a warning and reroutes to global
  • adding us-south1 to the cost map fixes it

Relevant log output

litellm-proxy  | {"message": "Vertex AI model 'qwen/qwen3-235b-a22b-instruct-2507-maas' does not support region 'us-south1' (supported: ['global']). Routing to 'global'.", "level": "WARNING", "timestamp": "2026-04-08T20:03:23.481696"}

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.82.3

Twitter / LinkedIn details

No response

extent analysis

TL;DR

The most likely fix is to update the LiteLLM model metadata to include us-south1 in the supported_regions for the Vertex Qwen model.

Guidance

  • Verify that the supported_regions in the model metadata includes us-south1 by checking the packaged LiteLLM cost map.
  • If us-south1 is not included, apply a workaround by patching the cost map to add us-south1 to the supported_regions.
  • Mount the patched JSON over LiteLLM's packaged backup cost map and enable LITELLM_LOCAL_MODEL_COST_MAP=True.
  • Check the LiteLLM version and consider updating to a version that includes the correct model metadata.

Example

To patch the cost map, use the following command:

."vertex_ai/qwen/qwen3-235b-a22b-instruct-2507-maas".supported_regions |= ((. // []) + ["us-south1"] | unique)

This will add us-south1 to the supported_regions for the Vertex Qwen model.

Notes

The issue seems to be specific to the LiteLLM version v1.81.9-stable and v1.82.3, where the packaged model metadata does not include us-south1 in the supported_regions. The workaround provided in the issue should fix the problem, but it's recommended to update to a version that includes the correct model metadata.

Recommendation

Apply the workaround by patching the cost map to add us-south1 to the supported_regions, as this is a temporary fix until the model metadata is updated in a future version of LiteLLM.

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