mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
add groq whisper large
This commit is contained in:
parent
8625770010
commit
f5d9916147
1 changed files with 3 additions and 1 deletions
|
@ -4367,6 +4367,8 @@ def transcription(
|
||||||
|
|
||||||
model, custom_llm_provider, dynamic_api_key, api_base = get_llm_provider(model=model, custom_llm_provider=custom_llm_provider, api_base=api_base) # type: ignore
|
model, custom_llm_provider, dynamic_api_key, api_base = get_llm_provider(model=model, custom_llm_provider=custom_llm_provider, api_base=api_base) # type: ignore
|
||||||
|
|
||||||
|
if dynamic_api_key is not None:
|
||||||
|
api_key = dynamic_api_key
|
||||||
optional_params = {
|
optional_params = {
|
||||||
"language": language,
|
"language": language,
|
||||||
"prompt": prompt,
|
"prompt": prompt,
|
||||||
|
@ -4408,7 +4410,7 @@ def transcription(
|
||||||
azure_ad_token=azure_ad_token,
|
azure_ad_token=azure_ad_token,
|
||||||
max_retries=max_retries,
|
max_retries=max_retries,
|
||||||
)
|
)
|
||||||
elif custom_llm_provider == "openai":
|
elif custom_llm_provider == "openai" or custom_llm_provider == "groq":
|
||||||
api_base = (
|
api_base = (
|
||||||
api_base
|
api_base
|
||||||
or litellm.api_base
|
or litellm.api_base
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue