Litellm dev 12 28 2024 p3 (#7464)

* feat(deepgram/): initial e2e support for deepgram stt

Uses deepgram's `/listen` endpoint to transcribe speech to text

 Closes https://github.com/BerriAI/litellm/issues/4875

* fix: fix linting errors

* test: fix test
This commit is contained in:
Krish Dholakia 2024-12-28 19:18:58 -08:00 committed by GitHub
parent 480d838790
commit ebc28b1921
10 changed files with 303 additions and 5 deletions

View file

@ -192,4 +192,12 @@ def get_supported_openai_params( # noqa: PLR0915
)
else:
return litellm.TritonConfig().get_supported_openai_params(model=model)
elif custom_llm_provider == "deepgram":
if request_type == "transcription":
return (
litellm.DeepgramAudioTranscriptionConfig().get_supported_openai_params(
model=model
)
)
return None