From aefc225aca3e7c54e33183d6b2ef9f01513a6f4c Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Thu, 14 Nov 2024 10:19:30 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=82=B7=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E4=BB=A5=E5=A4=96=E3=81=A7=E3=81=AF=E5=8F=8D=E5=BF=9C=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index 9c0e487..25e582e 100644 --- a/main.ts +++ b/main.ts @@ -27,7 +27,7 @@ const usage = `\ https://dash.deno.com/playground/darazllm 使い方: - @darazllm (または1/${n}の確率で)応答 + @darazllm 応答 @darazllm /bye すべて忘れる @darazllm /help このテキストを表示 @@ -74,7 +74,7 @@ async function visionChat( { role: "user", content: content.map((c) => - c.type === "text" ? { ...c, text: `${system}\n\n${c.text}` } : c + c.type === "text" ? { ...c, text: `${system}\n\n${c.text}` } : c, ), }, ], @@ -112,7 +112,7 @@ app.message(async (c) => { if (prompt) messages.push({ role: "user", content: prompt }); - if (isMention || Math.floor(Math.random() * n) === 0) { + if (isMention) { const content: Array = prompt .split(separatorRegex) .filter(Boolean)