feat: expand AI workflow support and refresh docs

This commit is contained in:
2026-03-12 13:47:42 +08:00
parent 8688422578
commit 4ecab597f4
28 changed files with 4806 additions and 1907 deletions

View File

@@ -1,20 +1,21 @@
import os
import sys
from logging.config import fileConfig
from pathlib import Path
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
# 将当前目录添加到 sys.path以便能够导入 app 模块
sys.path.append(os.getcwd())
SERVER_DIR = Path(__file__).resolve().parents[1]
if str(SERVER_DIR) not in sys.path:
sys.path.append(str(SERVER_DIR))
# 导入配置和模型
from app.core.config import settings
from app.db import Base
# 导入所有模型以确保它们被注册到 Base.metadata
from app.models import user, group, business, session
from app.models import business, chat, group, logs, session, user
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.