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()