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);
|
await delay(1);
|
||||||
|
|
||||||
if (lastContent !== content) {
|
if (lastContent !== content) {
|
||||||
yield content;
|
yield { text: content, swipes: [] };
|
||||||
}
|
}
|
||||||
|
|
||||||
lastContent = content;
|
lastContent = content;
|
||||||
|
|
Loading…
Reference in New Issue