You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a very descriptive title to this question.
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
Commit to Help
I commit to help with one of those options 👆
Example Code
import{GenerativeModel,GoogleGenerativeAIasGenerativeAI,FunctionDeclarationsToolasGoogleGenerativeAIFunctionDeclarationsTool,FunctionDeclarationasGenerativeAIFunctionDeclaration,typeFunctionDeclarationSchemaasGenerativeAIFunctionDeclarationSchema,GenerateContentRequest,SafetySetting,PartasGenerativeAIPart,ModelParams,RequestOptions,typeCachedContent,Schema,}from"@google/generative-ai";//replace by @google/genai and some adaptation should be made
Description
The SDK @google/generative-ai used in the following file is deprecated and should be replace by @google/genai
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
The SDK @google/generative-ai used in the following file is deprecated and should be replace by @google/genai
https://github.com/langchain-ai/langchainjs/blob/main/libs/langchain-google-genai/src/chat_models.ts
Will you update the code soon ?
Thank for your reply
System Info
Node.js
Beta Was this translation helpful? Give feedback.
All reactions