diff --git a/litellm/__pycache__/__init__.cpython-311.pyc b/litellm/__pycache__/__init__.cpython-311.pyc index 4fafd252e8..083f785552 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 d51b3fda27..847e9e6568 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 b460c79c21..db5819b91c 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 dc67938bf1..135f81ce04 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 834c246410..012df37bfd 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"