朱潮
b1b98caad7
安全访问,同时兼容 dict 和对象两种类型。这样即使某个 chunk 缺少 name 字段也不会崩溃。
2026-04-04 23:31:46 +08:00
朱潮
314a693793
Merge branch 'developing' into bot_manager
2026-04-04 23:24:17 +08:00
朱潮
05e22391ed
merge FACT_RETRIEVAL_PROMPT.md
2026-04-03 10:34:09 +08:00
朱潮
6d6c7a92ef
add voice skill
2026-04-01 10:26:17 +08:00
朱潮
752f14ed09
增加voice开关
2026-03-26 22:38:20 +08:00
朱潮
6ecb0d70e3
Merge branch 'developing' into bot_manager
2026-03-26 15:47:42 +08:00
朱潮
6b9ae7f86a
fix: skill 删除时同步清理 robot 目录,解压时跳过已存在的 skill
...
1. remove_skill 删除 uploads 下的 skill 后,同步删除 projects/robot/{bot_id}/skills/ 下的副本
2. _extract_skills_to_robot 不再每次全量清空重建,已存在的 skill 直接跳过
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:47:28 +08:00
朱潮
5f1808f108
skill上传检测
2026-03-26 15:34:56 +08:00
朱潮
1b4fcb3d71
refactor: 改用基于元数据文件位置的 skill 结构检测
...
将 skill 上传检测逻辑从基于 zip 文件结构(是否有顶级目录)改为基于
SKILL.md 和 .claude-plugin/plugin.json 的实际位置:先检查解压根目录,
再检查第二级子目录。统一解压到临时目录后再按结构移动到 skills 目录。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:30:17 +08:00
朱潮
9e9cb9ba77
添加百度搜索
2026-03-23 21:31:20 +08:00
朱潮
30dc697071
realtime接口支持16khz输出
2026-03-23 10:37:17 +08:00
朱潮
99273a91d3
支持语音合成和语音识别api
2026-03-21 23:50:51 +08:00
朱潮
16c50fa261
语音
2026-03-21 02:16:21 +08:00
朱潮
4fbc7e8667
已经实现基本对话
2026-03-21 01:00:02 +08:00
朱潮
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
autobee-sparticle
a161e43421
feat: add POST /api/v1/memory endpoint for realtime conversation memory ( #17 )
...
* feat: add POST /api/v1/memory endpoint for realtime conversation memory
Add memory extraction API that accepts conversation messages and
stores them via Mem0. This enables realtime voice sessions to save
memories through the same pipeline as chat conversations.
Fixes : sparticleinc/mygpt-frontend#2126
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address code review findings for memory API
- Use Literal["user","assistant"] for role field validation
- Add Field constraints (min_length, max_length=200)
- Track and report pairs_failed in response
- Hide internal exception details from HTTP response
- Remove unused authorization parameter (internal API)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 11:14:02 +09:00
朱潮
a05da928f0
update shell_env
2026-03-17 10:09:48 +08:00
朱潮
8e52b787f8
merge
2026-03-16 22:24:44 +08:00
朱潮
c27270588f
增加取消推理
2026-03-16 22:22:39 +08:00
朱潮
023189e943
复制bot支持env
2026-03-16 14:02:20 +08:00
朱潮
da1352550f
实现shell_env支持
2026-03-16 13:56:24 +08:00
朱潮
dd6dfb7116
Merge branch 'master' into bot_manager
2026-03-16 13:32:36 +08:00
朱潮
32fd8c8656
shell_env支持
2026-03-16 13:31:59 +08:00
朱潮
786e7c2a07
Merge branch 'master' into bot_manager
2026-03-15 16:53:36 +08:00
朱潮
b8368068ae
心跳发送增加 15 秒间隔判断,发送后也更新 last_yield_time
2026-03-15 16:53:18 +08:00
朱潮
f7e8680472
merge from master
2026-03-14 22:03:23 +08:00
朱潮
7a058065c1
在 routes/skill_manager.py:669-672,解压完成后立即检测并删除 __MACOSX 目录,这样后续的 skill
...
验证流程就不会受到干扰。
2026-03-13 10:08:38 +08:00
朱潮
0469ea2ecd
心跳输出格式改成json
2026-03-12 19:32:37 +08:00
朱潮
94471c90d8
添加心跳机制
2026-03-12 16:57:44 +08:00
朱潮
38c5d1e622
修复方案:在 routes/webdav.py 中添加了一个 WSGI 中间件包装函数,在请求到达 WsgiDAV 前:
...
1. 读取 X-Forwarded-Proto 设置正确的 wsgi.url_scheme
2. 将 Destination 头中的外部 scheme/host 重写为内部实际值
2026-03-09 18:51:08 +08:00
朱潮
5d97be9557
routes/webdav.py — 完全重写,从手写 WebDAV 协议改为使用 WsgiDAV 开源库
2026-03-09 18:33:05 +08:00
朱潮
4ad1c96bf3
ALLOWED_RESOURCE_TYPES 从 {robot, dataset} 改为 {robot, docs}。现在 WebDAV 路径为:
2026-03-09 16:00:07 +08:00
朱潮
9fd4a099da
remove resource_id
2026-03-09 15:48:35 +08:00
朱潮
7039bec61a
add webdav support
2026-03-09 12:54:38 +08:00
朱潮
49034bc571
add webdav support
2026-03-09 12:31:07 +08:00
朱潮
b277c9bbff
add webdav support
2026-03-09 11:56:17 +08:00
朱潮
85cc57ce1a
aupdate from_v2_request 新增 model_name、model_server、api_key 三个可选参数
2026-03-06 12:53:16 +08:00
朱潮
8264257ab6
现在 from_v2_request 的 model_name 和 model_server 优先级逻辑为:
...
1. 最高优先级:generate_cfg 中的 model / model_server(需不为空且不等于 whatever)
2. 回退:bot_config 中的值(原有逻辑)
2026-03-06 12:47:33 +08:00
朱潮
c6641337c1
Merge branch 'master' into bot_manager
2026-03-05 15:39:59 +08:00
朱潮
4c74acaf18
chat.py:730 的 v2 接口 exclude_fields 现在与 v1 接口保持一致,补上了 'model', 'model_server', 'dataset_ids', 'system_prompt', 'mcp_settings',
...
'robot_type', 'enable_thinking', 'skills', 'enable_memory' 这些字段。
2026-03-05 15:08:09 +08:00
朱潮
f7773a93e1
Merge branch 'upgrade/deepagents-0.4.4'
2026-03-04 14:08:51 +08:00
朱潮
26905ad623
新增memory管理
2026-03-04 13:43:49 +08:00
朱潮
b3b6dd85d9
排查n参数
2026-03-04 09:57:36 +08:00
朱潮
5b29e866f2
现在 v1 和 v2 接口都支持传递额外参数了
2026-03-02 20:01:43 +08:00
朱潮
f72a53462a
Merge branch 'master' of https://github.com/sparticleinc/catalog-agent
2026-03-02 16:07:10 +08:00
朱潮
ba51bd3583
Merge branch 'upgrade/deepagents-0.4.4' into bot_manager
2026-03-02 15:27:44 +08:00
朱潮
186d2fe265
添加tmp脚本删除
2026-03-02 15:27:26 +08:00
朱潮
6a9003ba77
文件名上传修复
2026-03-02 14:29:14 +08:00
朱潮
82ffe8b623
文件名上传修复
2026-03-02 14:27:32 +08:00
朱潮
ec921e3319
更新模型选择
2026-02-28 22:39:55 +08:00
朱潮
4295860f7d
更新skill manager
2026-02-28 11:47:21 +08:00
autobee-sparticle
108c675c3d
feat(memory): add memory management API endpoints ( #10 )
...
* chore: add .worktrees/ to .gitignore
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(memory): add memory management API endpoints
Add new /api/v1/memory endpoints for viewing and managing user memories:
- GET /api/v1/memory - list all memories for a bot
- DELETE /api/v1/memory/{memory_id} - delete single memory
- DELETE /api/v1/memory - delete all memories for a bot
Also add delete_memory and delete_all_memories methods to Mem0Manager.
Issue: #1844
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 18:01:12 +09:00
朱潮
6365d65715
user_identifier
2026-02-27 00:21:06 +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
朱潮
6befae11fb
Merge branch 'master' into bot_manager
2026-02-14 19:07:00 +08:00
朱潮
a6e7892536
modify routes/skill_manager.py
2026-02-12 22:19:09 +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
朱潮
e5ee24a765
create_project_directory
2026-02-07 23:59:05 +08:00
朱潮
1df52ca8d0
merge from prod
2026-02-06 22:07:47 +08:00
朱潮
c7e9f305b7
feat: 实现 Claude Plugins 模式的 Hook 机制
...
- 新增 agent/plugin_hook_loader.py:支持通过 .claude-plugin/plugin.json 配置 hooks 和 mcpServers
- 修改 agent/prompt_loader.py:集成 PrePrompt hooks,优先读取 skill MCP 配置
- 修改 routes/chat.py:添加 PostAgent 和 PreSave hooks
- 修改 routes/skill_manager.py:优先从 plugin.json 读取 name/description,fallback 到 SKILL.md
- 删除旧的 agent/skill_hook_loader.py
- 新增示例 skill user-context-loader,演示完整的 hooks 用法
Hook 类型:
- PrePrompt: 在 system_prompt 加载时注入内容
- PostAgent: 在 agent 执行后处理
- PreSave: 在消息保存前处理
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 20:15:54 +08:00
朱潮
e67d50b4fc
rename general agent
2026-02-06 17:05:17 +08:00
朱潮
7e058e1505
Merge branch 'prod' into bot_manager
2026-02-04 17:54:42 +08:00
朱潮
2e429e82f7
remove summary output
2026-02-04 17:39:51 +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
朱潮
51f988e535
update sql表名
2026-01-30 00:03:26 +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
朱潮
f1107ea35a
增加enable_thinking和enable_memory
2026-01-28 17:13:41 +08:00
朱潮
4e8e94861f
execute sql result
2026-01-23 18:33:29 +08:00
朱潮
f8a44e8d6d
execute sql
2026-01-23 17:44:34 +08:00
朱潮
44b4295a87
update parse_skill_frontmatter
2026-01-23 08:52:27 +08:00
朱潮
3dc119bca8
refactor(mem0): optimize connection pool and async memory handling
...
- Fix mem0 connection pool exhausted error with proper pooling
- Convert memory operations to async tasks
- Optimize docker-compose configuration
- Add skill upload functionality
- Reduce cache size for better performance
- Update dependencies
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 19:39:12 +08:00
朱潮
f694101747
refactor: migrate from Memori to Mem0 for long-term memory
...
Replace Memori with Mem0 for memory management:
- Delete memori_config.py, memori_manager.py, memori_middleware.py
- Add mem0_config.py, mem0_manager.py, mem0_middleware.py
- Update environment variables (MEMORI_* -> MEM0_*)
- Integrate Mem0 with LangGraph middleware
- Add sync connection pool for Mem0 in DBPoolManager
- Move checkpoint message prep to config creation
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 21:15:30 +08:00
朱潮
05744cb9f4
批量保存聊天记录
2026-01-19 09:44:57 +08:00
朱潮
3b438d8ab7
优化输出
2026-01-18 22:04:36 +08:00