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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(router): fall back to the deployment voice without a conditional dict spread
mateo-berri93fa9892389c
diff --git a/litellm/router.py b/litellm/router.pyindex 3b7f2d79823..c211e385d95 100644--- a/litellm/router.py+++ b/litellm/router.py@@ -4518,7 +4518,7 @@ class Router:**{**data,"input": input,- **({"voice": voice} if voice is not None else {}),+ "voice": data.get("voice") if voice is None else voice,"client": model_client,**kwargs,}