mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
test: fix test
This commit is contained in:
parent
cd7dd2a511
commit
18b67a455e
3 changed files with 21 additions and 11 deletions
|
@ -637,7 +637,10 @@ def client(original_function):
|
|||
if is_coroutine is True:
|
||||
pass
|
||||
else:
|
||||
if isinstance(original_response, ModelResponse):
|
||||
if (
|
||||
isinstance(original_response, ModelResponse)
|
||||
and len(original_response.choices) > 0
|
||||
):
|
||||
model_response: Optional[str] = original_response.choices[
|
||||
0
|
||||
].message.content # type: ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue