朱潮
9825a43cad
Merge branch 'feature/moshui20260410-file-path-fix' into bot_manager
2026-04-13 18:53:26 +08:00
朱潮
ccff7be046
Merge branch 'developing' into bot_manager
2026-04-11 21:02:18 +08:00
朱潮
4591163282
修复空内容重试
2026-04-11 19:15:53 +08:00
朱潮
3da3cc90e1
virtual_mode=False
2026-04-11 17:52:48 +08:00
朱潮
2964326cb8
update to deepagents 0.5.2
2026-04-11 16:23:59 +08:00
朱潮
7d22f0b34d
禁止路径穿越
2026-04-11 11:48:18 +08:00
朱潮
788bb0089f
upgrade to deepagents-0_5_2
2026-04-11 11:40:43 +08:00
朱潮
d2bba9e095
update path fix
2026-04-10 17:17:03 +08:00
朱潮
d1e31953b0
merge guideline-assistant-message-error
2026-04-09 15:05:11 +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
朱潮
0d18c2fc61
Merge branch 'feature/pre-memory-prompt' into bot_manager
2026-04-03 11:29:04 +08:00
朱潮
ab6b68268e
Merge branch 'feature/pre-memory-prompt' into dev
2026-04-02 17:49:21 +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
朱潮
738a904a6f
merge
2026-04-02 11:25:20 +08:00
autobee-sparticle
213e541697
fix: resolve PrePrompt Hook env var crash and increase Mem0 pool size ( #24 )
...
1. Fix "all environment values must be bytes or str" error in hook execution
by ensuring all env values are converted to str (getattr may return None
when attribute exists but is None). Also sanitize shell_env values.
2. Increase MEM0_POOL_SIZE default from 20 to 50 to address "connection pool
exhausted" errors under high concurrency.
Fixes : sparticleinc/felo-mygpt#2519
Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:04:31 +09:00
朱潮
44db634cbb
Merge branch 'feature/moshui20260330-schedule-job' into dev
2026-04-01 10:37:16 +08:00
朱潮
fd0fbc422d
uuid2str
2026-04-01 10:27:21 +08:00
朱潮
6d6c7a92ef
add voice skill
2026-04-01 10:26:17 +08:00
朱潮
dc2e8a39e3
Merge branch 'feature/moshui20260330-schedule-job' into dev
2026-03-31 20:04:49 +08:00
朱潮
41b4329b5e
Merge branch 'feature/moshui20260330-schedule-job' into bot_manager
2026-03-31 14:37:28 +08:00
朱潮
c2f7148f98
增加环境变量到pre prompt
2026-03-31 14:37:20 +08:00
朱潮
9ffe408e27
Merge branch 'feature/pre-memory-prompt' into bot_manager
2026-03-30 21:53:50 +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
朱潮
2dbe16cfb9
Merge branch 'developing' into bot_manager
2026-03-24 00:12:58 +08:00
朱潮
e13405ba29
shell_env support
2026-03-24 00:12:19 +08:00
朱潮
30dc697071
realtime接口支持16khz输出
2026-03-23 10:37:17 +08:00
朱潮
4b70da5bb0
语音
2026-03-21 02:41:10 +08:00
朱潮
c27270588f
增加取消推理
2026-03-16 22:22:39 +08:00
朱潮
da1352550f
实现shell_env支持
2026-03-16 13:56:24 +08:00
朱潮
5d10ed275e
Merge branch 'master' into bot_manager
2026-03-16 13:40:50 +08:00
朱潮
5a7aa06681
v2 实现shell_env支持
2026-03-16 13:39:58 +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
朱潮
f7e8680472
merge from master
2026-03-14 22:03:23 +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
朱潮
b6b821c9bb
bug fix
2026-03-04 14:30:44 +08:00
朱潮
f7773a93e1
Merge branch 'upgrade/deepagents-0.4.4'
2026-03-04 14:08:51 +08:00
朱潮
52d8161b0e
修改确保 max_length 永远不会是 None
2026-03-04 14:08:26 +08:00
朱潮
26905ad623
新增memory管理
2026-03-04 13:43:49 +08:00
朱潮
9215f8236d
🐛 fix: 修复 Mem0 连接池耗尽和 LLM 参数透传问题
...
- mem0_manager: 添加 _cleanup_mem0_instance 方法,在缓存移除实例时显式释放数据库连接,避免等待 GC 导致连接池耗尽
- deep_assistant: 根据 model_provider 过滤不支持的参数,Anthropic 不支持 OpenAI 特有参数如 n、presence_penalty 等
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-04 10:11:44 +08:00
86b38262fa
fix(memory): handle Mem0 get_all response format with results key
...
Mem0's get_all() returns data in format {"results": [...]}, not a direct list.
Also, agent_id is at the top level of each memory, not in metadata.
Changes:
- Add _extract_memories_from_response() to handle both new and old response formats
- Add _check_agent_id_match() to check agent_id at both top-level and in metadata
- Update get_all_memories, delete_memory, delete_all_memories to use new helpers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 13:28:39 +00:00
autobee-sparticle
572374b297
fix(memory): handle Mem0 get_all returning string or dict items ( #11 )
...
Mem0's get_all() method may return a list containing either strings
(older version format) or dictionaries (newer version format). This
fix adds proper type checking to handle both cases gracefully.
- get_all_memories: Skip string items, only process dict items
- delete_memory: Add type checking before accessing dict methods
- delete_all_memories: Add type checking before accessing dict methods
Fixes: 'str' object has no attribute 'get' error
Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 22:02:59 +09:00
a1f60a7024
fix: 修复 get_all_memories 调用时 config 为 None 导致的错误
...
问题:当调用 get_all_memories API 时,没有传递 config 参数,
导致 _create_mem0_instance 中的 config 为 None,
调用 config.get_custom_fact_extraction_prompt() 时抛出 AttributeError。
修复:添加 config 的空值检查,只在 config 存在时才添加 custom_fact_extraction_prompt。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 12:39:45 +00: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
朱潮
81e5479094
Merge branch 'upgrade/deepagents-0.4.4' into bot_manager
2026-03-02 12:55:47 +08:00
朱潮
4a534163d5
skill.md文件长度限制解除
2026-03-02 12:55:39 +08:00
朱潮
6cb7392488
Merge branch 'upgrade/deepagents-0.4.4' into bot_manager
2026-03-02 12:17:41 +08:00