Fix window.ai streaming
This commit is contained in:
parent
990f958f4f
commit
72adb4c8aa
|
@ -1176,7 +1176,7 @@ async function sendWindowAIRequest(messages, signal, stream) {
|
|||
await delay(1);
|
||||
|
||||
if (lastContent !== content) {
|
||||
yield content;
|
||||
yield { text: content, swipes: [] };
|
||||
}
|
||||
|
||||
lastContent = content;
|
||||
|
|
Loading…
Reference in New Issue