Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community[patch]: Deprecate Google PaLM integrations #5690

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading