Update __init__.py

This commit is contained in:
Saifeddine ALOUI 2023-11-08 20:14:22 +01:00 committed by GitHub
parent 1799694537
commit 2cc16158a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1683,6 +1683,8 @@ class LoLLMsAPPI(LollmsApplication):
self.close_message(client_id)
elif message_type == MSG_TYPE.MSG_TYPE_CHUNK:
if self.nb_received_tokens:
self.start_time = datetime.now()
dt =(datetime.now() - self.start_time).seconds
if dt==0:
dt=1