test(test_completion.py): handle gemini instability

This commit is contained in:
Krrish Dholakia 2024-08-07 15:58:47 -07:00
parent f76261af35
commit 639f84d609

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(