xiongzhu 2 年之前
父节点
当前提交
9786f59cb5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/chatapi/fetch-sse.ts

+ 1 - 0
src/chatapi/fetch-sse.ts

@@ -91,5 +91,6 @@ export async function fetchSSE(
             const str = new TextDecoder().decode(chunk)
             feed(str)
         }
+        onMessage('[DONE]')
     }
 }