Skip to content

Commit

Permalink
updates to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia committed Aug 16, 2023
1 parent 77e4acc commit d6fb6ea
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions litellm/tests/test_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ def test_completion_claude_stream():
except Exception as e:
pytest.fail(f"Error occurred: {e}")

def test_completion_hf_api():
try:
user_message = "write some code to find the sum of two numbers"
messages = [{ "content": user_message,"role": "user"}]
response = completion(model="stabilityai/stablecode-completion-alpha-3b-4k", messages=messages, custom_llm_provider="huggingface")
# Add any assertions here to check the response
print(response)
except Exception as e:
pytest.fail(f"Error occurred: {e}")
# def test_completion_hf_api():
# try:
# user_message = "write some code to find the sum of two numbers"
# messages = [{ "content": user_message,"role": "user"}]
# response = completion(model="stabilityai/stablecode-completion-alpha-3b-4k", messages=messages, custom_llm_provider="huggingface")
# # Add any assertions here to check the response
# print(response)
# except Exception as e:
# pytest.fail(f"Error occurred: {e}")

# def test_completion_hf_deployed_api():
# try:
Expand Down

0 comments on commit d6fb6ea

Please sign in to comment.