mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
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:
parent
480d838790
commit
ebc28b1921
10 changed files with 303 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue