fix aspeech on router

This commit is contained in:
Ishaan Jaff 2024-11-28 20:17:19 -08:00
parent 7901eee0b7
commit 97cd5526ae

View file

@ -1689,11 +1689,15 @@ class Router:
and potential_model_client is not None and potential_model_client is not None
and dynamic_api_key != potential_model_client.api_key and dynamic_api_key != potential_model_client.api_key
): ):
pass model_client = None
else: else:
pass model_client = potential_model_client
response = await litellm.aspeech(**data, **kwargs) response = await litellm.aspeech(
**data,
client=model_client,
**kwargs,
)
return response return response
except Exception as e: except Exception as e: