test(test_function_call_parsing.py): handle anthropic internal server error
This commit is contained in:
parent
773914bcb7
commit
e32d4a15b2
@ -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…
Reference in New Issue
Block a user