fix bug make prompt with image always being default

This commit is contained in:
DrewZt 2024-02-07 16:44:15 +08:00 committed by GitHub
parent 0ef46da632
commit 914922d27e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -458,9 +458,6 @@
) )
).join("\n"), ).join("\n"),
}); });
if (selected_image) {
prompt = `A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\nUSER:[img-10]${msg}\nASSISTANT:`;
}
await runLlama(prompt, { await runLlama(prompt, {
...params.value, ...params.value,
slot_id: slot_id, slot_id: slot_id,