forked from phoenix/litellm-mirror
fix aspeech on router
This commit is contained in:
parent
7901eee0b7
commit
97cd5526ae
1 changed files with 7 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue