Commit Graph

189 Commits

Author SHA1 Message Date
朱潮
718ec5302e Merge branch 'developing' into bot_manager 2026-05-12 12:44:19 +08:00
csh28
e4fc0db07d chore: improve agent error logging 2026-05-11 20:29:27 +08:00
csh28
951948639e Add agent final answer first char metric 2026-05-08 15:43:48 +08:00
朱潮
f5bb23a2d1 merge 2026-05-07 19:36:27 +08:00
朱潮
425f3c5bb4 chore: replace Chinese comments and log messages with English
Convert all Chinese comments, docstrings, logger/print output,
HTTPException detail messages, and API response messages to English
across the entire codebase. Functional zh/ja localized strings
(e.g. prompt templates, timezone display names, date formats) are
preserved as-is.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 19:45:35 +08:00
朱潮
45a94942b8 异步执行 _execute_post_agent_hooks 2026-04-24 13:07:44 +08:00
朱潮
8446dab1e4 daytona support 2026-04-23 15:09:09 +08:00
朱潮
8e35d860a5 merge 2026-04-20 22:42:53 +08:00
朱潮
f13f208900 add ENABLE_SELF_KNOWLEDGE 2026-04-20 19:24:30 +08:00
朱潮
dfc1c003c6 sanitize_model_kwargs 2026-04-20 19:00:15 +08:00
朱潮
7c72a52bb7 SKILLS_SUBDIR改成PROJECT_NAME 2026-04-19 09:47:49 +08:00
朱潮
0addc55fa2 SKILLS_SUBDIR改成PROJECT_NAME 2026-04-19 09:45:09 +08:00
朱潮
2911c67771 修改skill目录 2026-04-18 23:39:47 +08:00
朱潮
0adfbad600 修改skill目录 2026-04-18 23:36:32 +08:00
朱潮
2fa779e61e disable for autoload 2026-04-18 23:08:28 +08:00
朱潮
8c49997ed6 dataset to datsets 2026-04-15 11:09:55 +08:00
朱潮
e753127889 在删除用户前,先删除该用户及其子账号拥有的所有 bots(agent_bots 表的 ON DELETE CASCADE 会自动清理关联的
agent_mcp_servers、agent_chat_sessions、bot_shares 记录),然后再删除用户。
2026-04-13 16:52:52 +08:00
朱潮
ccff7be046 Merge branch 'developing' into bot_manager 2026-04-11 21:02:18 +08:00
朱潮
3b70d7511d remove max_tokens 2026-04-11 20:47:51 +08:00
朱潮
2216b01dcb 🐛 fix: 修复 prompt 模板花括号转义及 tool_call_chunk 安全访问
- prompt 中 JSON 示例的 {} 被 str.format() 误解析为模板变量,转义为 {{}}
- tool_call_chunk 改用 .get() 安全访问,避免 KeyError

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:35:12 +08:00
朱潮
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