forked from phoenix/litellm-mirror
test: handle claude instability
This commit is contained in:
parent
2995f3adc2
commit
fbba9b464c
1 changed files with 7 additions and 2 deletions
|
@ -406,8 +406,13 @@ def test_completion_claude_3_empty_response():
|
||||||
"content": "I was hoping we could chat a bit",
|
"content": "I was hoping we could chat a bit",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
response = litellm.completion(model="claude-3-opus-20240229", messages=messages)
|
try:
|
||||||
print(response)
|
response = litellm.completion(model="claude-3-opus-20240229", messages=messages)
|
||||||
|
print(response)
|
||||||
|
except litellm.InternalServerError as e:
|
||||||
|
pytest.skip(f"InternalServerError - {str(e)}")
|
||||||
|
except Exception as e:
|
||||||
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
||||||
def test_completion_claude_3():
|
def test_completion_claude_3():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue