From a19532b7f3d462d0434669079845f7841578939c Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 5 Dec 2024 20:41:44 -0800 Subject: [PATCH] fix router test_audio_speech_router --- litellm/router.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/litellm/router.py b/litellm/router.py index 5fe61146d3..3f21597945 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(