From 78f33dc9ab85111193dcd10f721539d608795258 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 21 Jan 2025 14:43:37 +0900 Subject: [PATCH] use content.length --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 6480812..3b0440e 100644 --- a/main.ts +++ b/main.ts @@ -104,7 +104,7 @@ app.message(async (c) => { } }); - if (prompt) messages.push({ role: "user", content }); + if (content.length > 0) messages.push({ role: "user", content }); if (isMention) { try {