Commit Graph

35 Commits

Author SHA1 Message Date
朱潮
a3f944450f 添加了从 os.environ 读取空值环境变量的逻辑 2026-03-20 19:01:50 +08:00
朱潮
09c4d5e804 master问题修复 2026-03-17 12:17:46 +08:00
朱潮
36f2a5b87a 支持master key 2026-03-17 11:18:15 +08:00
朱潮
a05da928f0 update shell_env 2026-03-17 10:09:48 +08:00
朱潮
023189e943 复制bot支持env 2026-03-16 14:02:20 +08:00
朱潮
da1352550f 实现shell_env支持 2026-03-16 13:56:24 +08:00
朱潮
ec921e3319 更新模型选择 2026-02-28 22:39:55 +08:00
朱潮
c9c9a71452 subaccount 2026-02-26 23:56:45 +08:00
朱潮
912d5ebbed 个人中心 2026-02-26 18:11:22 +08:00
朱潮
7cb2c9c5ca feat: 单智能体模式下加载用户所有知识库
- get_bot_settings 接口中,单智能体模式时加载用户的所有知识库
- 不再从 settings_json 读取 dataset_ids

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 08:29:10 +08:00
朱潮
1d82ca9ba8 feat: 添加启动时自动执行数据库迁移
添加 migrate_single_agent_mode 函数,在系统启动时自动添加
single_agent_bot_id 字段到 agent_user 表

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 08:13:36 +08:00
朱潮
2e928cbc9c feat: 添加单智能体模式 (Single Agent Mode)
为特定用户群体提供简化的智能体访问体验:
- 后端通过环境变量配置模板智能体
- 登录时自动为用户复制模板 bot
- 前端根据配置显示简化的侧边栏入口

后端变更:
- 添加 single_agent_bot_id 字段到 agent_user 表
- settings.py 添加单智能体模式配置
- 登录接口返回 single_agent 配置

环境变量:
- SINGLE_AGENT_MODE: 是否启用单智能体模式
- TEMPLATE_BOT_ID: 模板智能体 ID
- TEMPLATE_BOT_NAME: 模板智能体名称

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-26 08:05:18 +08:00
朱潮
98f23fa346 update payment 2026-02-26 00:35:42 +08:00
朱潮
d7dfd8810e update payment 2026-02-25 23:42:44 +08:00
朱潮
5ab55919bc 移除admin可看到所有bot的能力 2026-02-24 00:00:23 +08:00
朱潮
5c4f36ff0d 优化bot复制 2026-02-23 21:18:59 +08:00
朱潮
30cc704c0f 优化chat页面 2026-02-23 20:48:25 +08:00
朱潮
411c515a13 公开的智能体 2026-02-22 21:34:16 +08:00
朱潮
ed440564f3 后端 routes/bot_manager.py - 在 check_bot_access 函数中添加了对 is_published 的检查: 2026-02-22 21:17:34 +08:00
朱潮
b75afac520 自动同步智能体 2026-02-22 19:46:06 +08:00
朱潮
082fd24727 增加智能体广场
- 添加智能体广场功能
- 移除 playwright 日志

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 21:28:55 +08:00
朱潮
2fbf249a8d 复制 2026-02-12 00:41:03 +08:00
朱潮
4a8fffaf7d 删除id 2026-02-11 22:43:15 +08:00
朱潮
bd39a53507 add rag flow 2026-02-10 18:59:10 +08:00
朱潮
742eaf0a1c remove robot_type 2026-02-08 00:04:39 +08:00
朱潮
a22211da32 过期时间 2026-02-01 23:40:29 +08:00
朱潮
35f91a7d03 admin share 2026-02-01 21:48:23 +08:00
朱潮
f110b26efc admin share 2026-02-01 20:25:03 +08:00
朱潮
4a96f98a40 admin share 2026-02-01 18:40:58 +08:00
朱潮
2ee0bca96d admin share 2026-02-01 18:28:04 +08:00
朱潮
230b6c62a4 bot_share 2026-02-01 16:28:23 +08:00
朱潮
d71ae8d16d update icor 2026-01-30 22:38:28 +08:00
朱潮
5d8efd0dc4 删除部分表 2026-01-30 19:37:22 +08:00
朱潮
f88aca74f2 add table prefix 2026-01-29 15:59:42 +08:00
朱潮
4c70857ff6 增加bot_manager 2026-01-28 23:32:34 +08:00