From dc751750f4eeac72f48fde943046eca709d76f54 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Tue, 19 Nov 2024 11:08:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8AUTO=E4=BD=9C=E4=B8=BAgemini?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E9=BB=98=E8=AE=A4=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/CustomGoogleGeminiClient.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/CustomGoogleGeminiClient.js b/client/CustomGoogleGeminiClient.js index 4923506..a950e23 100644 --- a/client/CustomGoogleGeminiClient.js +++ b/client/CustomGoogleGeminiClient.js @@ -172,12 +172,12 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient { // codeExecution: {} } ] - // 笑死人的效果 - // body.tool_config = { - // function_calling_config: { - // mode: 'ANY' - // } - // } + // ANY要笑死人的效果 + body.tool_config = { + function_calling_config: { + mode: 'AUTO' + } + } } if (opt.image) { delete body.tools