From b9ed12adb78712c3d540af27aaf304b5d404398c Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 17 Feb 2025 23:46:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E5=AE=9A=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A4=AA=E9=95=BF=E5=8F=91=E4=B8=8D=E5=87=BA=E6=9D=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/prompts.js | 2 +- client/CustomGoogleGeminiClient.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/prompts.js b/apps/prompts.js index cd9c85b..52ee5bd 100644 --- a/apps/prompts.js +++ b/apps/prompts.js @@ -81,7 +81,7 @@ export class help extends plugin { prompts.push(...[defaultPrompt, defaultSydneyPrompt]) prompts.push(...readPrompts()) console.log(prompts) - e.reply(await makeForwardMsg(e, prompts.map(p => `《${p.name}》\n${limitString(p.content, 500)}`), '设定列表')) + e.reply(await makeForwardMsg(e, prompts.map(p => `《${p.name}》\n${limitString(p.content, 100)}`), '设定列表')) } async detailPrompt (e) { diff --git a/client/CustomGoogleGeminiClient.js b/client/CustomGoogleGeminiClient.js index efe76bf..ff2b629 100644 --- a/client/CustomGoogleGeminiClient.js +++ b/client/CustomGoogleGeminiClient.js @@ -200,7 +200,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient { } ], generationConfig: { - maxOutputTokens: opt.maxOutputTokens || 1000, + maxOutputTokens: opt.maxOutputTokens || 4096, temperature: opt.temperature || 0.9, topP: opt.topP || 0.95, topK: opt.tokK || 16