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]

fix router test_audio_speech_router

Ishaan Jaffaedf81ef1cd5
diff --git a/litellm/router.py b/litellm/router.py
index 5fe61146d3b..3f215979454 100644
--- a/litellm/router.py
+++ b/litellm/router.py
@@ -1695,11 +1695,12 @@ class Router:
model_client = potential_model_client
response = await litellm.aspeech(
- **data,
- client=model_client,
- **kwargs,
+ **{
+ **data,
+ "client": model_client,
+ **kwargs,
+ }
)
-
return response
except Exception as e:
asyncio.create_task(