xiaoyuyu6420
xiaoyuyu6420
Pushed an iteration addressing the review feedback. Summary of decisions: **Adopted** - `source.media_type` and `mimeType`/`mime_type` now strip parameters (e.g. `image/gif; charset=binary` → `image/gif`) and surrounding whitespace before comparison, matching how...
Hi @sujoshua, thanks for the feedback! I agree the hardcoded blocklist was too blunt. I just pushed an update that adds a **configurable image MIME whitelist** (`supported_image_mimes`) to the provider...
感谢补充,这几个方向整理得很清楚。对照本 issue 原来的几个可选方向,基本可以收敛为: - **metadata 方案**(你的 1):标题/章节路径放元数据做过滤加权,实现成本低,是多数 RAG 服务的标准做法; - **只给第一个 chunk 拼标题**(你的 2):最小改动,但收益有限; - **父子检索**(你的 3)和**标题独立检索支路**(你的 4)是更完整的解法。其中 4 和 AstrBot 现状特别契合——目前内置知识库已经是 BM25 + 稠密向量的混合检索,稀疏支路天然能命中标题词,稠密支路专注 chunk 正文语义,两者各司其职,正好避免"标题词把全部 chunk 相似度统一抬高"的问题。换句话说,也许根本不需要在 chunk...
For anyone following this: **PR #5644** already implements full ZCode agent support and is ready for review: - Provider management (additive mode, presets, live-config sync with `~/.zcode/v2/config.json`) - MCP sync...
同步一个进度:ZCode 支持的实现已经在 PR #5644 完成并全绿,目前在等维护者 review。 覆盖范围:provider 配置(~/.zcode/v2/config.json,additive 模式)、MCP 同步、统一 Skills 面板、用量统计导入后台调度,全部配置路径都对照真实 ZCode v3.3.6 验证过,另外做了真机 smoke test。 CI 目前 7/7 全绿(之前 Windows 上偶发的测试失败已定位并修复,根因说明在 PR #5644 的评论区里,与 ZCode 无关的既有问题没有带入)。 如果大家也在等这个功能,欢迎去 PR...
我准备处理这个 issue。修复思路:在 `ChannelOtherSettings` 加一个 `vertex_project_id` 字段,前端在 `VertexKeyType=api_key` 时显示输入框;后端 `getRequestUrl` 的 api_key 分支用这个字段替代硬编码的空字符串,调 `BuildGoogleModelURL` / `BuildAnthropicModelURL` 时透传 project_id。
我准备处理这个 issue。修复思路:在 `OaiStreamHandler` 的 SSE 循环里,每收到一个 chunk 就检查 `usage` 字段;首个出现有效 usage 的帧保存下来,不被后续无 usage 的 cost 元数据帧覆盖。这样可以复用已有的 `service.ValidUsage` 判断,改动局限在单个文件。
## Cross-PR comparison for maintainers There are currently three open PRs addressing this issue (#9378, #9422, #9442). I've reviewed all three and want to share a neutral comparison to help...
Taking the final-response delivery half of this issue. I verified the mechanism on current master (312ec36d5) and it's still present after #9987 / #9992: - `cron/manager.py::_woke_main_agent()` and `astr_agent_tool_exec.py::_wake_main_agent_for_background_result()` both consume...
@camera-2018 你说得对,这个反例成立。"DONE 只能说明执行完成,不能说明需要通知"——按需通知(`send_message_to_user if needed`)是现有提示词明确支持的行为,框架替模型决定"总结也要发出去"会把条件静默任务变成定时骚扰。 已在 #10008 收窄(0b030f9d2):`ToolLoopAgentRunner` 新增 `reached_max_steps`,只在 `step_until_done` 的强制收尾分支(拔掉全部工具那一步)置位。cron 与后台唤醒路径**仅在 `reached_max_steps` 时**补投最终文本——那是模型唯一"想发也没渠道"的场景;正常结束一律不动,静默权完全留给模型。 这样三个语义分开: - 执行总结 → 只进历史(`persist_agent_history`),行为不变 - 主动通知 → 模型通过 `send_message_to_user` 决定,行为不变 - 强制收尾兜底 → 框架补投一次,且仍带"本轮已发送过同文本则跳过"守卫...