forked from phoenix/litellm-mirror
test(test_streaming.py): refactor testing
This commit is contained in:
parent
7b53bf7d9a
commit
a9fdae0d23
1 changed files with 0 additions and 11 deletions
|
@ -760,17 +760,6 @@ def hf_test_completion_tgi_stream():
|
|||
pytest.fail(f"Error occurred: {e}")
|
||||
# hf_test_completion_tgi_stream()
|
||||
|
||||
def test_petals():
|
||||
print(f"making petals call")
|
||||
response = completion(
|
||||
model="petals/meta-llama/Llama-2-70b-chat-hf",
|
||||
messages=[{ "content": "Hello, how are you?","role": "user"}],
|
||||
# stream=True,
|
||||
base_url="https://chat.petals.dev/api/v1/generate"
|
||||
)
|
||||
|
||||
print(f"response: {response}")
|
||||
test_petals()
|
||||
# def test_completion_aleph_alpha():
|
||||
# try:
|
||||
# response = completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue