From 72adb4c8aab4ee48051ac362e79693aafb70dff9 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:42:06 +0200 Subject: [PATCH] Fix window.ai streaming --- public/scripts/openai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 444f08717..30f4c6e29 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -1176,7 +1176,7 @@ async function sendWindowAIRequest(messages, signal, stream) { await delay(1); if (lastContent !== content) { - yield content; + yield { text: content, swipes: [] }; } lastContent = content;