mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
bump version
This commit is contained in:
parent
d02ab9bfcd
commit
59d6703b0c
10 changed files with 16 additions and 3 deletions
BIN
dist/litellm-0.1.567-py3-none-any.whl
vendored
Normal file
BIN
dist/litellm-0.1.567-py3-none-any.whl
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-0.1.567.tar.gz
vendored
Normal file
BIN
dist/litellm-0.1.567.tar.gz
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-0.1.568-py3-none-any.whl
vendored
Normal file
BIN
dist/litellm-0.1.568-py3-none-any.whl
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-0.1.568.tar.gz
vendored
Normal file
BIN
dist/litellm-0.1.568.tar.gz
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-0.1.569-py3-none-any.whl
vendored
Normal file
BIN
dist/litellm-0.1.569-py3-none-any.whl
vendored
Normal file
Binary file not shown.
BIN
dist/litellm-0.1.569.tar.gz
vendored
Normal file
BIN
dist/litellm-0.1.569.tar.gz
vendored
Normal file
Binary file not shown.
Binary file not shown.
13
litellm/tests/test_validate_environment.py
Normal file
13
litellm/tests/test_validate_environment.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#### What this tests ####
|
||||
# This tests the validate environment function
|
||||
|
||||
import sys, os
|
||||
import traceback
|
||||
|
||||
sys.path.insert(
|
||||
0, os.path.abspath("../..")
|
||||
) # Adds the parent directory to the system path
|
||||
import time
|
||||
import litellm
|
||||
|
||||
api_key = litellm.validate_environment()
|
|
@ -958,7 +958,7 @@ def load_test_model(
|
|||
"exception": e,
|
||||
}
|
||||
|
||||
def validate_environment(self):
|
||||
def validate_environment():
|
||||
api_key = None
|
||||
if "OPENAI_API_KEY" in os.environ:
|
||||
api_key = os.getenv("OPENAI_API_KEY")
|
||||
|
@ -968,7 +968,7 @@ def validate_environment(self):
|
|||
api_key = os.getenv("REPLICATE_API_KEY")
|
||||
elif "AZURE_API_KEY" in os.environ:
|
||||
api_key = os.getenv("AZURE_API_KEY")
|
||||
elif "COHERE_API_KEY" in os.getenv("COHERE_API_KEY"):
|
||||
elif "COHERE_API_KEY" in os.environ:
|
||||
api_key = os.getenv("COHERE_API_KEY")
|
||||
elif "TOGETHERAI_API_KEY" in os.environ:
|
||||
api_key = os.getenv("TOGETHERAI_API_KEY")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "litellm"
|
||||
version = "0.1.567"
|
||||
version = "0.1.569"
|
||||
description = "Library to easily interface with LLM API providers"
|
||||
authors = ["BerriAI"]
|
||||
license = "MIT License"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue