litellm/tests/test_litellm/llms/openrouter
Sameer Kankute 9d7fc307b8
fix(openrouter): strip LiteLLM prefix when proxy sets custom_llm_provider
Wildcard openrouter/* deployments pass custom_llm_provider=openrouter with
the full openrouter/provider/model id; OpenRouter expects provider/model.
Strip the outer openrouter/ only when the remainder contains a slash so
native ids like openrouter/auto stay intact.

Adds regression test for proxy wildcard path.

Made-with: Cursor
2026-03-27 20:35:17 +05:30
..
chat Support Deepseek 3.2 with Reasoning (#17384) 2025-12-02 22:00:19 -08:00
image_edit fix: add API key validation in OpenRouter image edit config 2026-02-28 11:44:32 -05:00
image_generation Add tests for openrouter 2026-01-14 10:17:01 +05:30
responses CircleCI test stability (#23055) 2026-03-07 15:19:39 -08:00
test_openrouter_embedding_transformation.py OpenRouter embeddings API support (#18391) 2026-01-08 00:57:31 +05:30
test_openrouter_provider_routing.py fix(openrouter): strip LiteLLM prefix when proxy sets custom_llm_provider 2026-03-27 20:35:17 +05:30