diff --git a/scripts/start-bot.sh b/scripts/start-bot.sh index 6106d30..6b947e4 100644 --- a/scripts/start-bot.sh +++ b/scripts/start-bot.sh @@ -2,10 +2,8 @@ set -e -if [ -f shared/${DB_NAME:-chatgpt.db} ] -then - python3 core/bot/managment/update_gpt_models.py -fi +alembic upgrade "head" && \ +python3 core/bot/managment/update_gpt_models.py echo "starting the bot"