Add latency metrics (#4472)

* k

* update

* Update chat_backend.py

nit

---------

Co-authored-by: evan-danswer <evan@danswer.ai>
This commit is contained in:
pablonyx
2025-04-08 14:23:26 -07:00
committed by GitHub
parent 9b6c7625fd
commit 8db80a6bb1
3 changed files with 13 additions and 6 deletions

View File

@@ -448,7 +448,7 @@ def handle_new_chat_message(
),
is_connected=is_connected_func,
):
yield json.dumps(packet) if isinstance(packet, dict) else packet
yield packet
except Exception as e:
logger.exception("Error in chat message streaming")