forked from phoenix/litellm-mirror
feat(proxy_server.py): working /audio/transcription
endpoint
This commit is contained in:
parent
cc0294b2f2
commit
0fb7afe820
6 changed files with 95 additions and 54 deletions
|
@ -779,10 +779,10 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
client=None,
|
||||
max_retries=None,
|
||||
logging_obj=None,
|
||||
atranscriptions: bool = False,
|
||||
atranscription: bool = False,
|
||||
):
|
||||
data = {"model": model, "file": audio_file, **optional_params}
|
||||
if atranscriptions == True:
|
||||
if atranscription == True:
|
||||
return self.async_audio_transcriptions(
|
||||
audio_file=audio_file,
|
||||
data=data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue