fix(chat_manager.py): fix chat history message to add response instead of request message

This commit is contained in:
Gabriel Almeida 2023-05-10 11:57:29 -03:00
commit 55d18426fc

View file

@ -148,7 +148,7 @@ class ChatManager:
files=file_responses,
)
await self.send_json(client_id, response)
self.chat_history.add_message(client_id, chat_message)
self.chat_history.add_message(client_id, response)
async def handle_websocket(self, client_id: str, websocket: WebSocket):
await self.connect(client_id, websocket)