bump version

This commit is contained in:
Krrish Dholakia 2023-09-18 12:27:16 -07:00
parent 5cc5429652
commit 8c809db567
5 changed files with 3 additions and 3 deletions

View file

@ -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