mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
test: removing unstable tests
This commit is contained in:
parent
9a0c785741
commit
caa199d851
2 changed files with 23 additions and 23 deletions
|
@ -725,22 +725,22 @@ def test_completion_replicate_stream_bad_key():
|
|||
# test_completion_sagemaker_stream()
|
||||
|
||||
|
||||
def test_maritalk_streaming():
|
||||
messages = [{"role": "user", "content": "Hey"}]
|
||||
try:
|
||||
response = completion("maritalk", messages=messages, stream=True)
|
||||
complete_response = ""
|
||||
start_time = time.time()
|
||||
for idx, chunk in enumerate(response):
|
||||
chunk, finished = streaming_format_tests(idx, chunk)
|
||||
complete_response += chunk
|
||||
if finished:
|
||||
break
|
||||
if complete_response.strip() == "":
|
||||
raise Exception("Empty response received")
|
||||
except:
|
||||
pytest.fail(f"error occurred: {traceback.format_exc()}")
|
||||
test_maritalk_streaming()
|
||||
# def test_maritalk_streaming():
|
||||
# messages = [{"role": "user", "content": "Hey"}]
|
||||
# try:
|
||||
# response = completion("maritalk", messages=messages, stream=True)
|
||||
# complete_response = ""
|
||||
# start_time = time.time()
|
||||
# for idx, chunk in enumerate(response):
|
||||
# chunk, finished = streaming_format_tests(idx, chunk)
|
||||
# complete_response += chunk
|
||||
# if finished:
|
||||
# break
|
||||
# if complete_response.strip() == "":
|
||||
# raise Exception("Empty response received")
|
||||
# except:
|
||||
# pytest.fail(f"error occurred: {traceback.format_exc()}")
|
||||
# test_maritalk_streaming()
|
||||
# test on openai completion call
|
||||
def test_openai_text_completion_call():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue