mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) litellm router.aspeech (#6962)
* doc Migrating Databases * fix aspeech on router * test_audio_speech_router * test_audio_speech_router
This commit is contained in:
parent
2f3fc6d0d1
commit
1d0fb4f435
3 changed files with 74 additions and 3 deletions
|
@ -1690,11 +1690,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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue