mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
fix(openai.py): return model name with custom llm provider for openai compatible endpoints
This commit is contained in:
parent
5e69cc6ba1
commit
e94c4f818c
4 changed files with 5 additions and 1 deletions
|
@ -6422,7 +6422,7 @@ def convert_to_model_response_object(
|
|||
"system_fingerprint"
|
||||
]
|
||||
|
||||
if "model" in response_object:
|
||||
if "model" in response_object and model_response_object.model is None:
|
||||
model_response_object.model = response_object["model"]
|
||||
|
||||
if start_time is not None and end_time is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue