From 97cd5526aec9acf07ee4574f964edee960dc7c9e Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 28 Nov 2024 20:17:19 -0800 Subject: [PATCH] fix aspeech on router --- litellm/router.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/litellm/router.py b/litellm/router.py index 3751b2403..bf0f7dd7b 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -1689,11 +1689,15 @@ class Router: and potential_model_client is not None and dynamic_api_key != potential_model_client.api_key ): - pass + model_client = None else: - pass + model_client = potential_model_client - response = await litellm.aspeech(**data, **kwargs) + response = await litellm.aspeech( + **data, + client=model_client, + **kwargs, + ) return response except Exception as e: