mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Get converastion id before retrieving relevant notes in non-socket code
This commit is contained in:
@@ -831,6 +831,7 @@ async def chat(
|
|||||||
conversation = await ConversationAdapters.aget_conversation_by_user(
|
conversation = await ConversationAdapters.aget_conversation_by_user(
|
||||||
user, request.user.client_app, conversation_id, title
|
user, request.user.client_app, conversation_id, title
|
||||||
)
|
)
|
||||||
|
conversation_id = conversation.id if conversation else None
|
||||||
if not conversation:
|
if not conversation:
|
||||||
return Response(
|
return Response(
|
||||||
content=f"No conversation found with requested id, title", media_type="text/plain", status_code=400
|
content=f"No conversation found with requested id, title", media_type="text/plain", status_code=400
|
||||||
|
|||||||
Reference in New Issue
Block a user