mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
debug circle citest issue
This commit is contained in:
parent
230036d61a
commit
fcc0f2733f
2 changed files with 5 additions and 2 deletions
|
|
@ -775,6 +775,8 @@ def test_completion_with_fallbacks():
|
|||
|
||||
|
||||
def test_completion_with_fallbacks_multiple_keys():
|
||||
print(f"backup key 1: {os.getenv('BACKUP_OPENAI_API_KEY_1')}")
|
||||
print(f"backup key 2: {os.getenv('BACKUP_OPENAI_API_KEY_2')}")
|
||||
backup_keys = [{"api_key": os.getenv("BACKUP_OPENAI_API_KEY_1")}, {"api_key": os.getenv("BACKUP_OPENAI_API_KEY_2")}]
|
||||
try:
|
||||
api_key = "bad-key"
|
||||
|
|
@ -784,7 +786,8 @@ def test_completion_with_fallbacks_multiple_keys():
|
|||
# Add any assertions here to check the response
|
||||
print(response)
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
error_str = traceback.format_exc()
|
||||
pytest.fail(f"Error occurred: {error_str}")
|
||||
|
||||
# test_completion_with_fallbacks_multiple_keys()
|
||||
# def test_petals():
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "litellm"
|
||||
version = "0.1.759"
|
||||
version = "0.1.760"
|
||||
description = "Library to easily interface with LLM API providers"
|
||||
authors = ["BerriAI"]
|
||||
license = "MIT License"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue