fix(openai.py): support completion, streaming, async_streaming

This commit is contained in:
Krrish Dholakia 2024-07-20 15:23:42 -07:00
parent 6a7bf0c251
commit a01a45230c
4 changed files with 174 additions and 48 deletions

View file

@ -1176,6 +1176,7 @@ def completion(
client=client, # pass AsyncOpenAI, OpenAI client
organization=organization,
custom_llm_provider=custom_llm_provider,
drop_params=non_default_params.get("drop_params"),
)
except Exception as e:
## LOGGING - log the original exception returned