Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(router): assert a non-chat configured mode round-trips

mateo-berri1d71e306cc13
diff --git a/tests/test_litellm/test_router.py b/tests/test_litellm/test_router.py
index 417c58b95f6..228588d974f 100644
--- a/tests/test_litellm/test_router.py
+++ b/tests/test_litellm/test_router.py
@@ -7362,14 +7362,14 @@ def test_get_configured_mode_reads_deployment_model_info():
router = litellm.Router(
model_list=[
{
- "model_name": "chat-model",
- "litellm_params": {"model": "openai/some-unmapped-model"},
- "model_info": {"mode": "chat"},
+ "model_name": "tts-model",
+ "litellm_params": {"model": "openai/some-unmapped-tts-model"},
+ "model_info": {"mode": "audio_speech"},
}
]
)
- assert router.get_configured_mode("chat-model") == "chat"
+ assert router.get_configured_mode("tts-model") == "audio_speech"
def test_get_configured_mode_returns_none_for_unset_or_unknown():