CRITICAL FIX: restore chat functionality - sendMessage must be generator
- Change sendMessage to async generator function with yield* - Fixes 'Error: sendMessage(...) is not iterable' error - Restores chat functionality in Hermes modal
This commit is contained in:
parent
20ed410ff0
commit
46f74eab59
1 changed files with 2 additions and 2 deletions
|
|
@ -25,9 +25,9 @@ async function speakChatText(text, voice, speed) {
|
|||
return await speakText(text, voice, speed);
|
||||
}
|
||||
|
||||
async function sendMessage(message) {
|
||||
async function* sendMessage(message) {
|
||||
const { sendMessage } = await import("./chat.js");
|
||||
return sendMessage(message);
|
||||
yield* sendMessage(message);
|
||||
}
|
||||
|
||||
async function* sendMessageWithCustomHistory(history) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue