test(test_completion.py): handle internal server error in test

This commit is contained in:
Krrish Dholakia 2024-08-07 10:21:37 -07:00
parent 3cf9148a4a
commit 3646e3e3a4

View file

@ -934,15 +934,18 @@ def test_completion_function_plus_image(model):
}
]
response = completion(
model=model,
messages=[image_message],
tool_choice=tool_choice,
tools=tools,
stream=False,
)
try:
response = completion(
model=model,
messages=[image_message],
tool_choice=tool_choice,
tools=tools,
stream=False,
)
print(response)
print(response)
except litellm.InternalServerError:
pass
@pytest.mark.parametrize(