Skip to content

Commit 7c61e1d

Browse files
committed
fix(Google Gemini Chat Model Node): Ping @google/generative-ai version (no-changelog)
Signed-off-by: Oleg Ivaniv <[email protected]>
1 parent 6c63cd9 commit 7c61e1d

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
"semver": "^7.5.4",
8888
"tslib": "^2.6.2",
8989
"tsconfig-paths": "^4.2.0",
90-
"typescript": "^5.4.2"
90+
"typescript": "^5.4.2",
91+
"@google/generative-ai": "0.7.1"
9192
},
9293
"patchedDependencies": {
9394

packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export class LmChatGoogleGemini implements INodeType {
218218

219219
const model = new ChatGoogleGenerativeAI({
220220
apiKey: credentials.apiKey as string,
221-
modelName,
221+
model: modelName,
222222
topK: options.topK,
223223
topP: options.topP,
224224
temperature: options.temperature,

packages/@n8n/nodes-langchain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"@aws-sdk/credential-provider-node": "3.549.0",
134134
"@getzep/zep-js": "0.9.0",
135135
"@google-ai/generativelanguage": "0.2.1",
136-
"@google/generative-ai": "^0.5.0",
136+
"@google/generative-ai": "0.7.1",
137137
"@huggingface/inference": "2.6.4",
138138
"@langchain/anthropic": "^0.1.3",
139139
"@langchain/cohere": "^0.0.5",

pnpm-lock.yaml

Lines changed: 9 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)