forked from phoenix/litellm-mirror
bump version + check_valid_key
This commit is contained in:
parent
e3fa1d686e
commit
e6d48d91ce
2 changed files with 10 additions and 17 deletions
|
@ -83,20 +83,13 @@ def test_get_valid_models():
|
||||||
|
|
||||||
# test_get_valid_models()
|
# test_get_valid_models()
|
||||||
|
|
||||||
# def test_bad_key():
|
def test_bad_key():
|
||||||
# key = "bad-key"
|
key = "bad-key"
|
||||||
# response = check_valid_key(key)
|
response = check_valid_key(model="gpt-3.5-turbo", api_key=key)
|
||||||
# if response == False:
|
print(response, key)
|
||||||
# pass
|
assert(response == False)
|
||||||
# else:
|
|
||||||
# raise Exception("Bad key was not detected")
|
|
||||||
# test_bad_key()
|
|
||||||
|
|
||||||
# def test_good_key():
|
def test_good_key():
|
||||||
# key = os.environ['OPENAI_API_KEY']
|
key = os.environ['OPENAI_API_KEY']
|
||||||
# response = check_valid_key(key)
|
response = check_valid_key(model="gpt-3.5-turbo", api_key=key)
|
||||||
# if response == True:
|
assert(response == True)
|
||||||
# pass
|
|
||||||
# else:
|
|
||||||
# raise Exception("Good key did not pass")
|
|
||||||
# test_good_key()
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "litellm"
|
name = "litellm"
|
||||||
version = "0.1.604"
|
version = "0.1.605"
|
||||||
description = "Library to easily interface with LLM API providers"
|
description = "Library to easily interface with LLM API providers"
|
||||||
authors = ["BerriAI"]
|
authors = ["BerriAI"]
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue