nsarrazin HF Staff commited on
Commit
693d11b
·
unverified ·
1 Parent(s): fae04bd

fix(front): fix delay after end of streaming tokens

Browse files
src/lib/server/textGeneration/index.ts CHANGED
@@ -27,7 +27,7 @@ async function* keepAlive(done: AbortSignal): AsyncGenerator<MessageUpdate, unde
27
  type: MessageUpdateType.Status,
28
  status: MessageUpdateStatus.KeepAlive,
29
  };
30
- await new Promise((resolve) => setTimeout(resolve, 5000));
31
  }
32
  }
33
 
 
27
  type: MessageUpdateType.Status,
28
  status: MessageUpdateStatus.KeepAlive,
29
  };
30
+ await new Promise((resolve) => setTimeout(resolve, 100));
31
  }
32
  }
33