community[patch]: Fix error message when litellm is not installed (#16316)

The error message was mentioning the wrong package. I updated it to the
correct one.
This commit is contained in:
Jeremi Joslin
2024-01-24 12:42:29 +07:00
committed by GitHub
parent b3ed98dec0
commit 9e95699277

View File

@@ -246,8 +246,8 @@ class ChatLiteLLM(BaseChatModel):
import litellm
except ImportError:
raise ChatLiteLLMException(
"Could not import google.generativeai python package. "
"Please install it with `pip install google-generativeai`"
"Could not import litellm python package. "
"Please install it with `pip install litellm`"
)
values["openai_api_key"] = get_from_dict_or_env(