From c64b75a3aeaa5e7c86e92bffe9b7fd0ea837dd42 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 6 Jun 2024 11:57:50 -0700 Subject: [PATCH 1/2] community[patch]: Deprecate Google PaLM integrations --- libs/langchain-community/src/chat_models/googlepalm.ts | 4 ++++ libs/langchain-community/src/embeddings/googlepalm.ts | 4 ++++ libs/langchain-community/src/llms/googlepalm.ts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/libs/langchain-community/src/chat_models/googlepalm.ts b/libs/langchain-community/src/chat_models/googlepalm.ts index d9310714f863..9f4f8d2d100e 100644 --- a/libs/langchain-community/src/chat_models/googlepalm.ts +++ b/libs/langchain-community/src/chat_models/googlepalm.ts @@ -21,6 +21,8 @@ export type BaseMessageExamplePair = { }; /** + * @deprecated - Deprecated by Google. Will be removed in 0.3.0 + * * An interface defining the input to the ChatGooglePaLM class. */ export interface GooglePaLMChatInput extends BaseChatModelParams { @@ -95,6 +97,8 @@ function getMessageAuthor(message: BaseMessage) { } /** + * @deprecated - Deprecated by Google. Will be removed in 0.3.0 + * * A class that wraps the Google Palm chat model. * * @example diff --git a/libs/langchain-community/src/embeddings/googlepalm.ts b/libs/langchain-community/src/embeddings/googlepalm.ts index c64581c51a38..404e35704368 100644 --- a/libs/langchain-community/src/embeddings/googlepalm.ts +++ b/libs/langchain-community/src/embeddings/googlepalm.ts @@ -4,6 +4,8 @@ import { Embeddings, EmbeddingsParams } from "@langchain/core/embeddings"; import { getEnvironmentVariable } from "@langchain/core/utils/env"; /** + * @deprecated - Deprecated by Google. Will be removed in 0.3.0 + * * Interface that extends EmbeddingsParams and defines additional * parameters specific to the GooglePaLMEmbeddings class. */ @@ -29,6 +31,8 @@ export interface GooglePaLMEmbeddingsParams extends EmbeddingsParams { } /** + * @deprecated - Deprecated by Google. Will be removed in 0.3.0 + * * Class that extends the Embeddings class and provides methods for * generating embeddings using the Google Palm API. * diff --git a/libs/langchain-community/src/llms/googlepalm.ts b/libs/langchain-community/src/llms/googlepalm.ts index af2854ab9ed1..0303a186c03a 100644 --- a/libs/langchain-community/src/llms/googlepalm.ts +++ b/libs/langchain-community/src/llms/googlepalm.ts @@ -4,6 +4,8 @@ import { type BaseLLMParams, LLM } from "@langchain/core/language_models/llms"; import { getEnvironmentVariable } from "@langchain/core/utils/env"; /** + * @deprecated - Deprecated by Google. Will be removed in 0.3.0 + * * Input for Text generation for Google Palm */ export interface GooglePaLMTextInput extends BaseLLMParams { @@ -89,6 +91,8 @@ export interface GooglePaLMTextInput extends BaseLLMParams { } /** + * @deprecated - Deprecated by Google. Will be removed in 0.3.0 + * * Google Palm 2 Language Model Wrapper to generate texts */ export class GooglePaLM extends LLM implements GooglePaLMTextInput { From cf98788bbade373428579f9379af45b777a58abc Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 6 Jun 2024 11:58:23 -0700 Subject: [PATCH 2/2] chore: lint files --- libs/langchain-community/src/chat_models/googlepalm.ts | 4 ++-- libs/langchain-community/src/embeddings/googlepalm.ts | 4 ++-- libs/langchain-community/src/llms/googlepalm.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/langchain-community/src/chat_models/googlepalm.ts b/libs/langchain-community/src/chat_models/googlepalm.ts index 9f4f8d2d100e..d753004f5a8c 100644 --- a/libs/langchain-community/src/chat_models/googlepalm.ts +++ b/libs/langchain-community/src/chat_models/googlepalm.ts @@ -22,7 +22,7 @@ export type BaseMessageExamplePair = { /** * @deprecated - Deprecated by Google. Will be removed in 0.3.0 - * + * * An interface defining the input to the ChatGooglePaLM class. */ export interface GooglePaLMChatInput extends BaseChatModelParams { @@ -98,7 +98,7 @@ function getMessageAuthor(message: BaseMessage) { /** * @deprecated - Deprecated by Google. Will be removed in 0.3.0 - * + * * A class that wraps the Google Palm chat model. * * @example diff --git a/libs/langchain-community/src/embeddings/googlepalm.ts b/libs/langchain-community/src/embeddings/googlepalm.ts index 404e35704368..ffa474d04bb3 100644 --- a/libs/langchain-community/src/embeddings/googlepalm.ts +++ b/libs/langchain-community/src/embeddings/googlepalm.ts @@ -5,7 +5,7 @@ import { getEnvironmentVariable } from "@langchain/core/utils/env"; /** * @deprecated - Deprecated by Google. Will be removed in 0.3.0 - * + * * Interface that extends EmbeddingsParams and defines additional * parameters specific to the GooglePaLMEmbeddings class. */ @@ -32,7 +32,7 @@ export interface GooglePaLMEmbeddingsParams extends EmbeddingsParams { /** * @deprecated - Deprecated by Google. Will be removed in 0.3.0 - * + * * Class that extends the Embeddings class and provides methods for * generating embeddings using the Google Palm API. * diff --git a/libs/langchain-community/src/llms/googlepalm.ts b/libs/langchain-community/src/llms/googlepalm.ts index 0303a186c03a..eb8c4364c689 100644 --- a/libs/langchain-community/src/llms/googlepalm.ts +++ b/libs/langchain-community/src/llms/googlepalm.ts @@ -5,7 +5,7 @@ import { getEnvironmentVariable } from "@langchain/core/utils/env"; /** * @deprecated - Deprecated by Google. Will be removed in 0.3.0 - * + * * Input for Text generation for Google Palm */ export interface GooglePaLMTextInput extends BaseLLMParams {