bump version

This commit is contained in:
Krrish Dholakia 2023-09-08 19:26:41 -07:00
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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

BIN
dist/litellm-0.1.569.tar.gz vendored Normal file

Binary file not shown.

View 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()

View file

@ -958,7 +958,7 @@ def load_test_model(
"exception": e, "exception": e,
} }
def validate_environment(self): def validate_environment():
api_key = None api_key = None
if "OPENAI_API_KEY" in os.environ: if "OPENAI_API_KEY" in os.environ:
api_key = os.getenv("OPENAI_API_KEY") api_key = os.getenv("OPENAI_API_KEY")
@ -968,7 +968,7 @@ def validate_environment(self):
api_key = os.getenv("REPLICATE_API_KEY") api_key = os.getenv("REPLICATE_API_KEY")
elif "AZURE_API_KEY" in os.environ: elif "AZURE_API_KEY" in os.environ:
api_key = os.getenv("AZURE_API_KEY") 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") api_key = os.getenv("COHERE_API_KEY")
elif "TOGETHERAI_API_KEY" in os.environ: elif "TOGETHERAI_API_KEY" in os.environ:
api_key = os.getenv("TOGETHERAI_API_KEY") api_key = os.getenv("TOGETHERAI_API_KEY")

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "litellm" name = "litellm"
version = "0.1.567" version = "0.1.569"
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"