朱潮
d2bba9e095
update path fix
2026-04-10 17:17:03 +08:00
朱潮
513dda8bbb
🐛 fix: 修复 GuidelineMiddleware 导致 assistant message prefill 报错
...
enable_thinking 开启时,thinking 中间件将 AIMessage 追加到 messages 末尾,
导致不支持 assistant prefill 的模型返回 400 错误。
修复方式:在 AIMessage 后追加多语言 HumanMessage,确保消息以 user 结尾。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 15:02:28 +08:00
朱潮
05e22391ed
merge FACT_RETRIEVAL_PROMPT.md
2026-04-03 10:34:09 +08:00
朱潮
5eb0b7759d
🐛 fix: 修复 Mem0 连接池耗尽问题,改为操作级连接获取/释放
...
每个缓存的 Mem0 实例长期持有数据库连接导致并发时连接池耗尽。
改为每次操作前从池中获取连接、操作后立即释放,并添加 Semaphore 限制并发数。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:46:00 +08:00
朱潮
7da8466b3d
✨ feat: 记忆排除规则新增设备状态查询、故障报告、联系方式查找
...
- 新增排除类别:设备/设施状态查询与结果、Bug/故障报告、联系方式查找
- 新增3个日语负例 few-shot examples
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:48:11 +08:00
朱潮
bb23d230d1
✨ feat: 优化记忆提示词,过滤操作性/查询性动作
...
- 新增 EXCLUDE 排除规则,过滤查询动作、设备操作、一次性指令等不应记忆的信息
- 新增7个日语负例 few-shot examples(查询员工信息、操作灯光、设置空调等)
- 新增核心判断规则:只记忆用户是谁,不记忆用户让助手做了什么
- 同步合并 dev 分支的 plain language 规则和语义完整性改进
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:44:04 +08:00
朱潮
fea6b35779
✨ feat: 添加 PreMemoryPrompt hook 支持自定义记忆提取提示词
...
通过插件 hook 机制允许自定义 Mem0 的 FACT_RETRIEVAL_PROMPT,
包含联系人关系追踪和同姓消歧等增强能力。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:36:35 +08:00
朱潮
89b7bb9928
fix: 解压 skill 到 robot 目录时清理不在列表中的多余 skill 文件夹
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 15:55:06 +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
朱潮
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
朱潮
b33acf9da0
Merge branch 'master' into prod
2026-03-25 23:59:04 +08:00
朱潮
ee65d208a8
Merge branch 'prod' into staging
2026-03-24 10:54:59 +08:00
朱潮
2d82d7c8b6
merge from developing
2026-03-24 10:54:54 +08:00
朱潮
e13405ba29
shell_env support
2026-03-24 00:12:19 +08:00
朱潮
29da20fa22
soffice sharp 支持
2026-03-18 23:54:41 +08:00
朱潮
eda54757e6
Merge branch 'prod' into master
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 15:40:23 +08:00
shuirong
822589eab6
ci: 重新调整CI
2026-03-18 16:16:53 +09:00
朱潮
709a967537
Merge branch 'developing'
2026-03-17 22:06:23 +08:00
朱潮
0c985607b5
Merge branch 'master' of https://github.com/sparticleinc/catalog-agent
2026-03-17 22:04:50 +08:00
朱潮
e2e0a7d985
跨语言场景 - 即使用户用其他语言提问,也必须用指定语言回复
2026-03-17 22:03:23 +08:00
朱潮
380764d5ed
add chromium
2026-03-17 14:48:50 +08:00
朱潮
95e34ed172
add chromium
2026-03-17 14:27:16 +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
autobee-sparticle
deb78a7625
fix: improve memory extraction for colloquial/informal speech ( #16 )
...
* chore: add .worktrees/ to .gitignore
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(CI): 添加 onprem-dev 环境的构建和部署配置
在 CircleCI 配置中新增 onprem-dev 环境的 build-and-push 和 deploy 任务,部署到 cluster-for-B 的 onprem-dev 命名空间
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: improve memory extraction for colloquial/informal speech
Add semantic completeness rules and multilingual few-shot examples
to FACT_RETRIEVAL_PROMPT to prevent truncated or semantically incorrect
memory extraction. Specifically addresses Japanese casual speech where
particles (が, を, に) are often omitted.
Closes sparticleinc/mygpt-frontend#2125
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>
Co-authored-by: shuirong <shuirong1997@icloud.com>
2026-03-17 10:37:49 +09:00
朱潮
f24c3ff78f
playwright support
2026-03-16 23:07:00 +08:00
朱潮
c27270588f
增加取消推理
2026-03-16 22:22:39 +08:00
shuirong
0a6ec95518
feat(CI): 添加 onprem-dev 环境的构建和部署配置
...
在 CircleCI 配置中新增 onprem-dev 环境的 build-and-push 和 deploy 任务,部署到 cluster-for-B 的 onprem-dev 命名空间
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 16:18:50 +09:00
朱潮
32fd8c8656
shell_env支持
2026-03-16 13:31:59 +08:00
朱潮
b8368068ae
心跳发送增加 15 秒间隔判断,发送后也更新 last_yield_time
2026-03-15 16:53:18 +08:00
朱潮
8cab0180e3
update novare
2026-03-13 21:50:57 +08:00
朱潮
7a058065c1
在 routes/skill_manager.py:669-672,解压完成后立即检测并删除 __MACOSX 目录,这样后续的 skill
...
验证流程就不会受到干扰。
2026-03-13 10:08:38 +08:00
朱潮
5de9803d0c
Merge branch 'feature/agentic_rag'
2026-03-12 19:54:31 +08:00
朱潮
9f669e1b6d
dataset支持dataset_id软连接
2026-03-12 19:54:09 +08:00
朱潮
0469ea2ecd
心跳输出格式改成json
2026-03-12 19:32:37 +08:00
朱潮
94471c90d8
添加心跳机制
2026-03-12 16:57:44 +08:00
朱潮
082630e281
table_rag_retrieve 和 rag_retrieve 增加调用策略
2026-03-12 11:59:38 +08:00
朱潮
8640f99674
table_rag 超时时间改成300
2026-03-11 22:05:37 +08:00
朱潮
e3c400f663
邮箱列表大幅扩展
2026-03-11 16:08:41 +08:00
朱潮
8360e1467c
已更新 description,移除了具体存储服务(Cloudflare R2、AWS S3、S3-compatible storage)的描述,只保留了文件上传操作相关的说明。
2026-03-11 12:50:54 +08:00
朱潮
21fb6c924f
remove excel-analysis
2026-03-11 12:47:37 +08:00
朱潮
c1d2d48979
add table_rag
2026-03-11 12:25:31 +08:00
朱潮
4adf62afb7
add document skill
2026-03-11 09:27:08 +08:00
朱潮
67290f7e5e
add config/s3-upload-sparticle.yaml
2026-03-11 09:21:43 +08:00
朱潮
25272015a0
add public
2026-03-11 09:21:18 +08:00
朱潮
611bd23a7c
add skill
2026-03-11 09:02:05 +08:00
朱潮
f830b8bb08
add table_rag_retrieve
2026-03-10 16:13:48 +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