mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Get converastion id before retrieving relevant notes in non-socket code
This commit is contained in:
parent
d2d9f4888e
commit
ba0187798a
1 changed files with 1 additions and 0 deletions
|
@ -831,6 +831,7 @@ async def chat(
|
|||
conversation = await ConversationAdapters.aget_conversation_by_user(
|
||||
user, request.user.client_app, conversation_id, title
|
||||
)
|
||||
conversation_id = conversation.id if conversation else None
|
||||
if not conversation:
|
||||
return Response(
|
||||
content=f"No conversation found with requested id, title", media_type="text/plain", status_code=400
|
||||
|
|
Loading…
Reference in a new issue