From c13e8077ba6bd364cb7058b02ed4cac3fa692e95 Mon Sep 17 00:00:00 2001 From: takatost Date: Tue, 27 Feb 2024 13:27:46 +0800 Subject: [PATCH] fix agent app converter command --- api/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/commands.py b/api/commands.py index e376d222c6..73325620ee 100644 --- a/api/commands.py +++ b/api/commands.py @@ -405,12 +405,12 @@ def convert_to_agent_apps(): click.echo('Converting app: {}'.format(app.id)) try: - app.mode = AppMode.AGENT.value + app.mode = AppMode.AGENT_CHAT.value db.session.commit() # update conversation mode to agent db.session.query(Conversation).filter(Conversation.app_id == app.id).update( - {Conversation.mode: AppMode.AGENT.value} + {Conversation.mode: AppMode.AGENT_CHAT.value} ) db.session.commit()