mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Add missing api key to OpenAI transcription
This commit is contained in:
parent
16b90423d0
commit
fe6e710309
1 changed files with 8 additions and 0 deletions
|
|
@ -3997,6 +3997,13 @@ def transcription(
|
|||
max_retries=max_retries,
|
||||
)
|
||||
elif custom_llm_provider == "openai":
|
||||
api_key = (
|
||||
api_key
|
||||
or litellm.api_key
|
||||
or litellm.azure_key
|
||||
or get_secret("OPENAI_API_KEY")
|
||||
)
|
||||
|
||||
response = openai_chat_completions.audio_transcriptions(
|
||||
model=model,
|
||||
audio_file=file,
|
||||
|
|
@ -4005,6 +4012,7 @@ def transcription(
|
|||
atranscription=atranscription,
|
||||
timeout=timeout,
|
||||
logging_obj=litellm_logging_obj,
|
||||
api_key=api_key,
|
||||
max_retries=max_retries,
|
||||
)
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue