mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 06:33:41 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user