forked from phoenix/litellm-mirror
test(test_streaming.py): fix test
This commit is contained in:
parent
5307510592
commit
9eb75cc159
2 changed files with 16 additions and 5 deletions
|
@ -7103,9 +7103,10 @@ def convert_to_model_response_object(
|
|||
model_response_object.model = response_object["model"]
|
||||
|
||||
if start_time is not None and end_time is not None:
|
||||
model_response_object._response_ms = ( # type: ignore
|
||||
end_time - start_time
|
||||
).total_seconds() * 1000
|
||||
if isinstance(start_time, type(end_time)):
|
||||
model_response_object._response_ms = ( # type: ignore
|
||||
end_time - start_time
|
||||
).total_seconds() * 1000
|
||||
|
||||
if hidden_params is not None:
|
||||
model_response_object._hidden_params = hidden_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue