mirror of
https://github.com/kou029w/daraz-llm.git
synced 2025-01-30 22:08:09 +00:00
use content.length
This commit is contained in:
parent
7cf8ed3107
commit
78f33dc9ab
1 changed files with 1 additions and 1 deletions
2
main.ts
2
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue