feat(ai): 重构AI聊天模块,使用agno框架替代langchain

- 移除langchain相关依赖,引入agno作为大模型开发框架
- 重构聊天会话和消息存储,使用agno的TeamSession管理
- 合并chat_message和chat_session模块为统一的chat模块
- 更新前端API和类型定义,适配新的后端接口
- 优化数据库日志字段类型,根据数据库类型自动选择
- 重构AI助手组件,使用新的聊天API
- 清理不再使用的模型、控制器和服务代码
This commit is contained in:
zhangtao
2026-03-13 00:41:44 +08:00
parent 8b83caf7fc
commit e03692467b
40 changed files with 2251 additions and 2650 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ services:
MYSQL_ROOT_PASSWORD: "FastApi123abc"
MYSQL_DATABASE: "fastapiadmin"
MYSQL_PASSWORD: "FastApi123abc"
MYSQL_USER: "root"
MYSQL_USER: "fastapiadmin"
MYSQL_TZINFO_TO_SYS_TABLES: 1 # 初始化MySQL时区表,解决时差问题
ports:
- "3306:3306"