mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
Use agent_id for getting correct agent
This commit is contained in:
@@ -485,7 +485,7 @@ class ConversationAdapters:
|
||||
user: KhojUser, client_application: ClientApplication = None, agent_id: int = None
|
||||
):
|
||||
if agent_id:
|
||||
agent = await AgentAdapters.aget_agent_by_id(id)
|
||||
agent = await AgentAdapters.aget_agent_by_id(agent_id)
|
||||
return await Conversation.objects.acreate(user=user, client=client_application, agent=agent)
|
||||
return await Conversation.objects.acreate(user=user, client=client_application)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user