From 8c809db5674867f911fca837aff08be186733103 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 18 Sep 2023 12:27:16 -0700 Subject: [PATCH] bump version --- litellm/__pycache__/__init__.cpython-311.pyc | Bin 9999 -> 10023 bytes litellm/__pycache__/main.cpython-311.pyc | Bin 41221 -> 41221 bytes litellm/__pycache__/utils.cpython-311.pyc | Bin 114164 -> 114164 bytes litellm/main.py | 4 ++-- pyproject.toml | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/__pycache__/__init__.cpython-311.pyc b/litellm/__pycache__/__init__.cpython-311.pyc index 4fafd252e839ab4810f6fda09c983daf1bc2cb96..083f785552a628814cdce61fdf1c497e345000ef 100644 GIT binary patch delta 94 zcmeD8TkglZoR^o20SHbmoR^o20SH)TbEGEoyj%=GaB^WI*H$jZS9<|^CJ7t> delta 24 ecmezJo9)YQHm>Eoyj%=GP(HtrYbzJytGxhsGziE5 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"