use content.length

This commit is contained in:
Nebel 2025-01-21 14:43:37 +09:00
parent 7cf8ed3107
commit 78f33dc9ab
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -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 {