diff --git a/litellm/utils.py b/litellm/utils.py index 75d320859f..e2c63270d8 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -1512,20 +1512,20 @@ def get_model_list(): data = response.json() # update model list model_list = data["model_list"] - # check if all model providers are in environment - model_providers = data["model_providers"] - missing_llm_provider = None - for item in model_providers: - if f"{item.upper()}_API_KEY" not in os.environ: - missing_llm_provider = item - break - # update environment - if required - threading.Thread(target=get_all_keys, args=(missing_llm_provider)).start() + # # check if all model providers are in environment + # model_providers = data["model_providers"] + # missing_llm_provider = None + # for item in model_providers: + # if f"{item.upper()}_API_KEY" not in os.environ: + # missing_llm_provider = item + # break + # # update environment - if required + # threading.Thread(target=get_all_keys, args=(missing_llm_provider)).start() return model_list return [] # return empty list by default except: print_verbose( - f"[Non-Blocking Error] get_all_keys error - {traceback.format_exc()}" + f"[Non-Blocking Error] get_model_list error - {traceback.format_exc()}" ) ####### EXCEPTION MAPPING ################ diff --git a/pyproject.toml b/pyproject.toml index 4a27945864..fd16e74fae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "litellm" -version = "0.1.556" +version = "0.1.557" description = "Library to easily interface with LLM API providers" authors = ["BerriAI"] license = "MIT License"