Skip to content

The agent engineering platform.

added instruction about pip install google-gerativeai (#5004)

Leonid Ganelineddc2d4c21e5b
diff --git a/langchain/chat_models/google_palm.py b/langchain/chat_models/google_palm.py
index cdfbd8e10b..0f305db8f4 100644
--- a/langchain/chat_models/google_palm.py
+++ b/langchain/chat_models/google_palm.py
@@ -258,7 +258,8 @@ class ChatGooglePalm(BaseChatModel, BaseModel):
genai.configure(api_key=google_api_key)
except ImportError:
raise ChatGooglePalmError(
- "Could not import google.generativeai python package."
+ "Could not import google.generativeai python package. "
+ "Please install it with `pip install google-generativeai`"
)
values["client"] = genai