test: handle watsonx rate limit error

This commit is contained in:
Krrish Dholakia 2024-05-13 18:27:39 -07:00
parent f8e1b1db2e
commit 87a21115c5
4 changed files with 9 additions and 1 deletions

View file

@ -3447,6 +3447,8 @@ async def test_acompletion_stream_watsonx():
# Add any assertions here to check the response
async for chunk in response:
print(chunk)
except litellm.RateLimitError as e:
pass
except Exception as e:
pytest.fail(f"Error occurred: {e}")