test: update test to handle overloaded error

This commit is contained in:
Krrish Dholakia 2024-11-14 19:02:57 +05:30
parent fef31a1c01
commit b4f7771ed1

View file

@ -3333,7 +3333,9 @@ async def test_acompletion_function_call_with_streaming(model):
validate_final_streaming_function_calling_chunk(chunk=chunk)
idx += 1
# raise Exception("it worked! ")
except litellm.InternalServerError or litellm.ServiceUnavailableError:
except litellm.InternalServerError:
pass
except litellm.ServiceUnavailableError:
pass
except Exception as e:
pytest.fail(f"Error occurred: {e}")