Update stream.ts
This commit is contained in:
parent
5db24e4bbc
commit
a13df1f613
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ function parseDataLine(line: string): any {
|
|||
}
|
||||
|
||||
function parseSseLine(line: string): { done: boolean; data: any } {
|
||||
if (line.startsWith("data: [DONE]")) {
|
||||
if (line.startsWith("data:[DONE]") || line.startsWith("data: [DONE]")) {
|
||||
return { done: true, data: undefined };
|
||||
}
|
||||
if (line.startsWith("data:")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue