diff --git a/litellm/__pycache__/__init__.cpython-311.pyc b/litellm/__pycache__/__init__.cpython-311.pyc index 4fafd252e83..083f785552a 100644 Binary files a/litellm/__pycache__/__init__.cpython-311.pyc and b/litellm/__pycache__/__init__.cpython-311.pyc differ diff --git a/litellm/__pycache__/main.cpython-311.pyc b/litellm/__pycache__/main.cpython-311.pyc index d51b3fda278..847e9e65685 100644 Binary files a/litellm/__pycache__/main.cpython-311.pyc and b/litellm/__pycache__/main.cpython-311.pyc differ diff --git a/litellm/__pycache__/utils.cpython-311.pyc b/litellm/__pycache__/utils.cpython-311.pyc index b460c79c210..db5819b91c2 100644 Binary files a/litellm/__pycache__/utils.cpython-311.pyc and b/litellm/__pycache__/utils.cpython-311.pyc differ diff --git a/litellm/main.py b/litellm/main.py index dc67938bf1a..135f81ce043 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -234,8 +234,8 @@ def completion( custom_llm_provider = model.split("/", 1)[0] model = model.split("/", 1)[1] model, custom_llm_provider = get_llm_provider(model=model, custom_llm_provider=custom_llm_provider) - model_api_key = get_api_key(llm_provider=custom_llm_provider, dynamic_api_key=api_key) # get the api key from the environment if required for the model - if model_api_key and "sk-litellm" in model_api_key: + api_key = get_api_key(llm_provider=custom_llm_provider, dynamic_api_key=api_key) # get the api key from the environment if required for the model + if api_key and "sk-litellm" in api_key: api_base = "https://proxy.litellm.ai" custom_llm_provider = "openai" # check if user passed in any of the OpenAI optional params diff --git a/pyproject.toml b/pyproject.toml index 834c246410c..012df37bfda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "litellm" -version = "0.1.693" +version = "0.1.694" description = "Library to easily interface with LLM API providers" authors = ["BerriAI"] license = "MIT License"