mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
(fix) ignore rate limit error for gpt4 turbo
This commit is contained in:
parent
2b48a1fc3e
commit
7309fd6225
1 changed files with 5 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ def test_completion_with_litellm_call_id():
|
|||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_with_litellm_call_id()
|
||||
|
||||
import openai
|
||||
def test_completion_gpt4_turbo():
|
||||
try:
|
||||
response = completion(
|
||||
|
|
@ -118,9 +118,12 @@ def test_completion_gpt4_turbo():
|
|||
max_tokens=10,
|
||||
)
|
||||
print(response)
|
||||
except openai.error.RateLimitError:
|
||||
print("got a rate liimt error")
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_gpt4_turbo()
|
||||
test_completion_gpt4_turbo()
|
||||
|
||||
def test_completion_perplexity_api():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue