Skip to content

Commit 6b19d45

Browse files
authored
Abort generation if an error is displayed on the front-end. (#855)
1 parent b1cfe2a commit 6b19d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/conversation/[id]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233
// we read the stream until we get the final answer
234234
while (finalAnswer === "") {
235235
// check for abort
236-
if ($isAborted) {
236+
if ($isAborted || $error) {
237237
reader?.cancel();
238238
break;
239239
}

0 commit comments

Comments
 (0)