diff --git a/libs/genai/langchain_google_genai/chat_models.py b/libs/genai/langchain_google_genai/chat_models.py index 91a1cfa8..45ad1cec 100644 --- a/libs/genai/langchain_google_genai/chat_models.py +++ b/libs/genai/langchain_google_genai/chat_models.py @@ -579,9 +579,9 @@ class ChatGoogleGenerativeAI(_BaseGoogleGenerativeAI, BaseChatModel): Instantiation: To use, you must have either: - 1. The ``GOOGLE_API_KEY``` environment variable set with your API key, or - 2. Pass your API key using the google_api_key kwarg to the ChatGoogle - constructor. + 1. The ``GOOGLE_API_KEY`` environment variable set with your API key, or + 2. Pass your API key using the google_api_key kwarg + to the ChatGoogleGenerativeAI constructor. .. code-block:: python diff --git a/libs/genai/langchain_google_genai/embeddings.py b/libs/genai/langchain_google_genai/embeddings.py index a920c7ff..b79b95eb 100644 --- a/libs/genai/langchain_google_genai/embeddings.py +++ b/libs/genai/langchain_google_genai/embeddings.py @@ -27,9 +27,9 @@ class GoogleGenerativeAIEmbeddings(BaseModel, Embeddings): To use, you must have either: - 1. The ``GOOGLE_API_KEY``` environment variable set with your API key, or - 2. Pass your API key using the google_api_key kwarg to the ChatGoogle - constructor. + 1. The ``GOOGLE_API_KEY`` environment variable set with your API key, or + 2. Pass your API key using the google_api_key kwarg + to the GoogleGenerativeAIEmbeddings constructor. Example: .. code-block:: python