mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix streaming server crash
This commit is contained in:
@@ -334,8 +334,13 @@ function textGenProcessStartedHandler(websocket, content, session, prompt, fn_in
|
|||||||
case "process_generating":
|
case "process_generating":
|
||||||
return { text: content.output.data[0], completed: false };
|
return { text: content.output.data[0], completed: false };
|
||||||
case "process_completed":
|
case "process_completed":
|
||||||
|
try {
|
||||||
return { text: content.output.data[0], completed: true };
|
return { text: content.output.data[0], completed: true };
|
||||||
}
|
}
|
||||||
|
catch {
|
||||||
|
return { text: '', completed: true };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return { text: '', completed: false };
|
return { text: '', completed: false };
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user