(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:
Ishaan Jaff 2024-12-05 13:39:50 -08:00 committed by GitHub
parent 1eb9b4ee13
commit fb1ec4b6be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 74 additions and 3 deletions

View file

@ -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: