fix(chat_manager.py): fix chat history message to add response instead of request message
This commit is contained in:
parent
f83160cf21
commit
55d18426fc
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ class ChatManager:
|
||||||
files=file_responses,
|
files=file_responses,
|
||||||
)
|
)
|
||||||
await self.send_json(client_id, response)
|
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):
|
async def handle_websocket(self, client_id: str, websocket: WebSocket):
|
||||||
await self.connect(client_id, websocket)
|
await self.connect(client_id, websocket)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue