Skip to content

Commit 647e867

Browse files
test(test_amazing_vertex_completion.py): fix test to handle rate limit errors
1 parent 6b14c62 commit 647e867

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

litellm/tests/test_amazing_vertex_completion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ async def test_async_vertexai_response():
222222
model=model, messages=messages, temperature=0.7, timeout=5
223223
)
224224
print(f"response: {response}")
225+
except litellm.RateLimitError as e:
226+
pass
225227
except litellm.Timeout as e:
226228
pass
227229
except Exception as e:

0 commit comments

Comments
 (0)