mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-07 06:29:41 +00:00
test(test_amazing_vertex_completion.py): handle rate limit errors
This commit is contained in:
committed by
ishaan-jaff
parent
01077b20b9
commit
0d54887149
@@ -964,14 +964,14 @@
|
||||
"mode": "completion"
|
||||
},
|
||||
"dolphin": {
|
||||
"max_tokens": 4096,
|
||||
"max_tokens": 16384,
|
||||
"input_cost_per_token": 0.0000005,
|
||||
"output_cost_per_token": 0.0000005,
|
||||
"litellm_provider": "nlp_cloud",
|
||||
"mode": "completion"
|
||||
},
|
||||
"chatdolphin": {
|
||||
"max_tokens": 4096,
|
||||
"max_tokens": 16384,
|
||||
"input_cost_per_token": 0.0000005,
|
||||
"output_cost_per_token": 0.0000005,
|
||||
"litellm_provider": "nlp_cloud",
|
||||
|
||||
@@ -266,6 +266,8 @@ async def test_async_vertexai_streaming_response():
|
||||
complete_response += chunk.choices[0].delta.content
|
||||
print(f"complete_response: {complete_response}")
|
||||
assert len(complete_response) > 0
|
||||
except litellm.RateLimitError as e:
|
||||
pass
|
||||
except litellm.Timeout as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user