Skip to content

The agent engineering platform.

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

Jeremi Joslin9e95699277fe
diff --git a/libs/community/langchain_community/chat_models/litellm.py b/libs/community/langchain_community/chat_models/litellm.py
index cb6a2107d3..39f7284c3b 100644
--- a/libs/community/langchain_community/chat_models/litellm.py
+++ b/libs/community/langchain_community/chat_models/litellm.py
@@ -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(