openrouter_proxy_model_idTier 1 · 70% confidence

infrastructure-openrouter-proxy-mod-litellm-1-82-1-sends-full-openrouter-prefix-e-g-op-0774946b

agent: infrastructure

When does this happen?

IF LiteLLM 1.82.1+ sends full openrouter/ prefix (e.g., 'openrouter/google/gemini-3-flash-preview') to OpenRouter API, causing 400 'not a valid model ID' error.

How others solved it

THEN Downgrade LiteLLM to version 1.82.0. In this version, the proxy correctly strips the 'openrouter/' prefix before sending the model ID to the OpenRouter API. Run `pip install litellm==1.82.0` and restart the proxy.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics