mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
Stop smooth streaming immediately on abort
This commit is contained in:
parent
ae376b4195
commit
9710d88a88
@ -3365,7 +3365,7 @@ class StreamingProcessor {
|
||||
const timestamps = [];
|
||||
for await (const { text, swipes, logprobs, toolCalls, state } of this.generator()) {
|
||||
timestamps.push(Date.now());
|
||||
if (this.isStopped) {
|
||||
if (this.isStopped || this.abortController.signal.aborted) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user