From b5622ef4c2024ed3e7fdcb662dd704e385c30319 Mon Sep 17 00:00:00 2001 From: MoePotato Date: Tue, 14 Jan 2025 21:05:14 +0800 Subject: [PATCH] 1 --- app/client/platforms/google.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/client/platforms/google.ts b/app/client/platforms/google.ts index e3679568a6b..b60cfadce08 100644 --- a/app/client/platforms/google.ts +++ b/app/client/platforms/google.ts @@ -144,6 +144,9 @@ export class GeminiProApi implements LLMApi { }; const requestPayload = { contents: messages, + tools: [{ + "googleSearch": {} + }], generationConfig: { // stopSequences: [ // "Title" @@ -171,7 +174,7 @@ export class GeminiProApi implements LLMApi { threshold: accessStore.googleSafetySettings, }, ], - tools: [{"googleSearch":{}}], + }; let shouldStream = !!options.config.stream;