mirror of
https://github.com/kou029w/daraz-llm.git
synced 2025-01-31 06:18:08 +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) {
|
if (isMention) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue