From 08afc95f06baa41ef9e85dc7b40ab76c590a4131 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sun, 16 Feb 2025 21:29:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dgemini=E7=A6=81?= =?UTF-8?q?=E8=A8=80=E5=92=8C=E6=8F=90=E5=87=BA=E5=AF=B9=E9=9D=9E=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/CustomGoogleGeminiClient.js | 2 +- utils/tools/JinyanTool.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/CustomGoogleGeminiClient.js b/client/CustomGoogleGeminiClient.js index 2e5451f..fc68087 100644 --- a/client/CustomGoogleGeminiClient.js +++ b/client/CustomGoogleGeminiClient.js @@ -312,7 +312,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient { let args = Object.assign(fc.args, { isAdmin, isOwner, - sender: this.e.sender, + sender: this.e.sender.user_id, mode: 'gemini' }) functionResponse.response.content = await chosenTool.func(args, this.e) diff --git a/utils/tools/JinyanTool.js b/utils/tools/JinyanTool.js index d714976..13ab5e9 100644 --- a/utils/tools/JinyanTool.js +++ b/utils/tools/JinyanTool.js @@ -15,7 +15,7 @@ export class JinyanTool extends AbstractTool { }, time: { type: 'string', - description: '禁言时长,单位为秒,默认为600' + description: '禁言时长,单位为秒,默认为600。如果需要解除禁言则填0.' }, isPunish: { type: 'string',