mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00: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(
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue