mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
(ci/cd) retry cloudflare request 3 times
This commit is contained in:
parent
83b31141c6
commit
113b5e7284
1 changed files with 2 additions and 1 deletions
|
@ -1933,6 +1933,7 @@ def test_completion_cloudflare():
|
||||||
model="cloudflare/@cf/meta/llama-2-7b-chat-int8",
|
model="cloudflare/@cf/meta/llama-2-7b-chat-int8",
|
||||||
messages=[{"content": "what llm are you", "role": "user"}],
|
messages=[{"content": "what llm are you", "role": "user"}],
|
||||||
max_tokens=15,
|
max_tokens=15,
|
||||||
|
num_retries=3,
|
||||||
)
|
)
|
||||||
print(response)
|
print(response)
|
||||||
|
|
||||||
|
@ -1940,7 +1941,7 @@ def test_completion_cloudflare():
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
# test_completion_cloudflare()
|
test_completion_cloudflare()
|
||||||
|
|
||||||
|
|
||||||
def test_moderation():
|
def test_moderation():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue