mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
new or tests
This commit is contained in:
parent
e48e1a4597
commit
04abf986fc
1 changed files with 15 additions and 0 deletions
|
@ -323,6 +323,20 @@ def test_completion_openai_litellm_key():
|
|||
# test_completion_openai_litellm_key()
|
||||
|
||||
# commented out for now, as openrouter is quite flaky - causing our deployments to fail. Please run this before pushing changes.
|
||||
# def test_completion_openrouter():
|
||||
# try:
|
||||
# response = completion(
|
||||
# model="openrouter/google/palm-2-chat-bison",
|
||||
# messages=messages,
|
||||
# temperature=0.5,
|
||||
# top_p=0.1,
|
||||
# )
|
||||
# # Add any assertions here to check the response
|
||||
# print(response)
|
||||
# except Exception as e:
|
||||
# pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_openrouter()
|
||||
|
||||
# def test_completion_openrouter():
|
||||
# try:
|
||||
# response = completion(
|
||||
|
@ -335,6 +349,7 @@ def test_completion_openai_litellm_key():
|
|||
# print(response)
|
||||
# except Exception as e:
|
||||
# pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_openrouter()
|
||||
|
||||
# test_completion_openrouter()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue