Remove [DONE] check
This commit is contained in:
parent
031e426005
commit
77dc99cd9a
Binary file not shown.
|
|
@ -242,10 +242,6 @@ export class CompletionService {
|
|||
|
||||
if (line.startsWith('data: ')) {
|
||||
const data = line.slice(6);
|
||||
if (data === '[DONE]') {
|
||||
streamFinished = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
const parsed: ApiCompletionStreamChunk = JSON.parse(data);
|
||||
|
|
|
|||
Loading…
Reference in New Issue