fix(utils.py): fix updating hidden params

This commit is contained in:
Krrish Dholakia 2024-09-28 18:26:20 -07:00
parent b0eff0b84f
commit 5fbcdd8b11

View file

@ -5911,7 +5911,9 @@ def convert_to_model_response_object(
).total_seconds() * 1000 ).total_seconds() * 1000
if hidden_params is not None: 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: if _response_headers is not None:
model_response_object._response_headers = _response_headers model_response_object._response_headers = _response_headers