(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 2f3fc6d0d1
commit 1d0fb4f435
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: