Explorar o código

chore: wont parse finished result

Yidadaa %!s(int64=2) %!d(string=hai) anos
pai
achega
85445c4ef2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/client/platforms/openai.ts

+ 1 - 1
app/client/platforms/openai.ts

@@ -123,7 +123,7 @@ export class ChatGPTApi implements LLMApi {
             }
           },
           onmessage(msg) {
-            if (msg.data === "[DONE]") {
+            if (msg.data === "[DONE]" || finished) {
               return finish();
             }
             const text = msg.data;