mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Refresh the conversation log from the db before addressing the next query
This commit is contained in:
parent
f1545d2b2f
commit
93b41170d1
1 changed files with 1 additions and 0 deletions
|
@ -338,6 +338,7 @@ async def websocket_endpoint(
|
|||
await websocket.accept()
|
||||
while connection_alive:
|
||||
try:
|
||||
await sync_to_async(conversation.refresh_from_db)(fields=["conversation_log"])
|
||||
q = await websocket.receive_text()
|
||||
except WebSocketDisconnect:
|
||||
logger.debug(f"User {user} disconnected web socket")
|
||||
|
|
Loading…
Add table
Reference in a new issue