mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test(test_function_call_parsing.py): handle anthropic internal server error
This commit is contained in:
parent
773914bcb7
commit
e32d4a15b2
1 changed files with 3 additions and 3 deletions
|
@ -134,11 +134,11 @@ def trade(model_name: str) -> List[Trade]:
|
|||
"function": {"name": tool_spec["function"]["name"]}, # type: ignore
|
||||
},
|
||||
)
|
||||
calls = response.choices[0].message.tool_calls
|
||||
trades = [trade for call in calls for trade in parse_call(call)]
|
||||
return trades
|
||||
except litellm.InternalServerError:
|
||||
pass
|
||||
calls = response.choices[0].message.tool_calls
|
||||
trades = [trade for call in calls for trade in parse_call(call)]
|
||||
return trades
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue