mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Add log line for time to first response
This commit is contained in:
@@ -42,6 +42,10 @@ class ThreadedGenerator:
|
||||
return item
|
||||
|
||||
def send(self, data):
|
||||
if self.response == "":
|
||||
time_to_first_response = perf_counter() - self.start_time
|
||||
logger.debug(f"First response took: {time_to_first_response:.3f} seconds")
|
||||
|
||||
self.response += data
|
||||
self.queue.put(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user