Merge remote-tracking branch 'origin/chat_and_cache' into websocket

This commit is contained in:
anovazzi1 2023-04-25 22:16:11 -03:00
commit dc567ddd9a

View file

@ -124,7 +124,8 @@ class ChatManager:
history = self.chat_history.get_history(client_id, filter=False)
file_responses = []
if history:
for msg in history:
# Iterate backwards through the history
for msg in reversed(history):
if isinstance(msg, FileResponse):
file_responses.append(msg)
if msg.type == "start":