mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Reset agent to default when continuing with deceased agent
This commit is contained in:
parent
874776024a
commit
59e55f981f
1 changed files with 5 additions and 0 deletions
|
@ -661,6 +661,11 @@ async def chat(
|
|||
if conversation.agent and conversation.agent != default_agent:
|
||||
agent = conversation.agent
|
||||
|
||||
if not conversation.agent:
|
||||
conversation.agent = default_agent
|
||||
await conversation.asave()
|
||||
agent = default_agent
|
||||
|
||||
await is_ready_to_chat(user)
|
||||
|
||||
user_name = await aget_user_name(user)
|
||||
|
|
Loading…
Add table
Reference in a new issue