fix(openai.py): return model name with custom llm provider for openai compatible endpoints

This commit is contained in:
Krrish Dholakia 2024-03-12 10:30:10 -07:00
parent 5e69cc6ba1
commit e94c4f818c
4 changed files with 5 additions and 1 deletions

View file

@ -875,6 +875,7 @@ def completion(
custom_prompt_dict=custom_prompt_dict,
client=client, # pass AsyncOpenAI, OpenAI client
organization=organization,
custom_llm_provider=custom_llm_provider,
)
except Exception as e:
## LOGGING - log the original exception returned