mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(utils.py): fix updating hidden params
This commit is contained in:
parent
b0eff0b84f
commit
5fbcdd8b11
1 changed files with 3 additions and 1 deletions
|
@ -5911,7 +5911,9 @@ def convert_to_model_response_object(
|
|||
).total_seconds() * 1000
|
||||
|
||||
if hidden_params is not None:
|
||||
model_response_object._hidden_params = hidden_params
|
||||
if model_response_object._hidden_params is None:
|
||||
model_response_object._hidden_params = {}
|
||||
model_response_object._hidden_params.update(hidden_params)
|
||||
|
||||
if _response_headers is not None:
|
||||
model_response_object._response_headers = _response_headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue