Skip to content

Commit

Permalink
community[patch]: Deprecate Google PaLM integrations (#5690)
Browse files Browse the repository at this point in the history
* community[patch]: Deprecate Google PaLM integrations

* chore: lint files
  • Loading branch information
bracesproul authored Jun 6, 2024
1 parent 4d65a34 commit 423da6a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/langchain-community/src/chat_models/googlepalm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions libs/langchain-community/src/embeddings/googlepalm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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.
*
Expand Down
4 changes: 4 additions & 0 deletions libs/langchain-community/src/llms/googlepalm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 423da6a

Please sign in to comment.