debug circle citest issue
This commit is contained in:
parent
230036d61a
commit
fcc0f2733f
@ -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…
Reference in New Issue
Block a user