fix: remove unused warmupToastShown variable to fix TS6133 build error (#4353)
This commit is contained in:
parent
fe05b700dc
commit
df01a139a0
1 changed files with 0 additions and 2 deletions
|
|
@ -484,12 +484,10 @@ export function createOpenAIStreamAdapter(): ChatModelAdapter {
|
|||
rejectFirstToken?.(err);
|
||||
}
|
||||
|
||||
let warmupToastShown = false;
|
||||
const warmupDelayMs = 450;
|
||||
const warmupTimer = setTimeout(() => {
|
||||
if (!waitingFirstChunk) return;
|
||||
if (abortSignal.aborted) return;
|
||||
warmupToastShown = true;
|
||||
runtime.setGeneratingStatus("waiting");
|
||||
}, warmupDelayMs);
|
||||
runtime.setThreadRunning(threadKey, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue