fix agent app converter command

This commit is contained in:
takatost 2024-02-27 13:27:46 +08:00
parent 9f42892b42
commit c13e8077ba
1 changed files with 2 additions and 2 deletions

View File

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