Merge pull request #2877 from BerriAI/litellm_fix_text_completion

[Feat] Text-Completion-OpenAI - Re-use OpenAI Client
This commit is contained in:
Ishaan Jaff 2024-04-06 12:15:52 -07:00 committed by GitHub
commit a2c63075ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 99 additions and 1 deletions

View file

@ -1060,6 +1060,7 @@ def completion(
api_key=api_key,
api_base=api_base,
acompletion=acompletion,
client=client, # pass AsyncOpenAI, OpenAI client
logging_obj=logging,
optional_params=optional_params,
litellm_params=litellm_params,