Repository navigation
Conversation
|
@SigureMo 任务已完成,请求 review |
|
我看没有认领第八题呀 |
Nyanpasu 审查看板审查状态: 🔎 审查中 审查版本: 7f3e1c6 目标分支: main 新一轮审查已开始:上一轮在 67047da 完成复验但因头部推进(作者推送 7f3e1c6 修复 oxfmt 格式)未发布结论。本轮按新对比范围 815de3a..7f3e1c6 重新验证:与已通过轮次相比仅 4 个 fixture 被 oxfmt 重排,其余内容逐字节一致。
审查发现待处理
已解决或已取代
Powered by Nyanpasu with glm-5.3-flash max, please check the suggestions carefully.
|
||||||||||||||||||||||||||||||||||||||||||||
bu's不是我和hongwei-2026组队了,你不知道吗,还是我没有认领任务8,你在搞笑吗
@SigureMo @hongwei-2026
|
|
@SigureMo ,你认真看看 |
|
我组队了 |
|
哦抱歉看到了,麻烦先过了 CI 和 bot review 再提交 |
a28594b to
3384ff7
Compare
|
@rai-studio-bot 请继续深度 review,专注于:
可以进一步参考 https://github.com/ShigureLab/nyanpasu/blob/main/AGENTS.md 中的原则进行 review |
@hongwei-2026 如果 hongming-2026 是 @yuhongming-2026 麻烦修改一下报名哈 |
3384ff7 to
f13de98
Compare
rai-studio-bot
left a comment
There was a problem hiding this comment.
已复核 f13de98:数据集图片与无 ID 工具观察的兼容性问题均已修复。仍有 system 文本块归一化差异需跟进,另附一项精简重复测试的非阻塞建议,详见行级评论。
未发现只能在 Python 内部构造的异常用例。隔离加载源码归一化函数后 51 项测试通过;完整 pytest 受缺少 Ray 限制,多节点 GPU 集成测试未运行,当前提交尚无 CI checks。
| if all(part.get("type") == "text" for part in normalized_parts): | ||
| return "".join(str(part["text"]) for part in normalized_parts) |
There was a problem hiding this comment.
请保留 system 多文本块的段落分隔。这里对所有角色直接拼接 text,导致 Chat 的 {"role":"system","content":[{"type":"text","text":"Rule A"},{"type":"text","text":"Rule B"}]} 变成 "Rule ARule B";改动前为 "Rule A\n\nRule B",Anthropic 顶层 system 使用相同两个块时仍产生后者。
该 JSON 可直接经过 HTTP normalizer;既改变了原有 system prompt,又使跨协议 messages/state hash 不一致。已在当前提交隔离执行原函数复现,现有 51 个用例仍全部通过。建议保留 system 的双换行连接规则,仅对适用角色折叠,并补充多 block system 的跨协议 fixture。
There was a problem hiding this comment.
已在 b810d7d 修复:共享 content 归一化和 Responses 的 system 投影均使用双换行,新增三协议 system_text_list fixture 与直接回归用例。隔离执行当前源码函数后,Chat、Responses、Anthropic 均匹配 Rule A\n\nRule B,既有 system prompt 分隔得以保留。
| @pytest.mark.parametrize("case_name", GOLDEN_CASES) | ||
| def test_semantically_equivalent_protocols_share_canonical_fields(case_name: str) -> None: | ||
| expected = _load_json(FIXTURES / f"{case_name}.canonical.json") | ||
| normalized_by_protocol = { | ||
| protocol: _canonical_fields(normalizer(_load_json(FIXTURES / protocol / f"{case_name}.request.json"))) | ||
| for protocol, normalizer in PROTOCOL_NORMALIZERS.items() | ||
| } | ||
| for protocol, fields in normalized_by_protocol.items(): | ||
| assert fields == expected, protocol | ||
| values = list(normalized_by_protocol.values()) | ||
| assert values[0] == values[1] == values[2] |
There was a problem hiding this comment.
已在 b810d7d 修复:删除了重复的跨协议相等用例,保留按协议参数化的 canonical fixture 断言,并增加了 system 多文本块覆盖。
Unify Chat Completions, Responses, and Anthropic Messages into one messages/tools/chat_template_kwargs shape with offline consistency and error-path coverage, while keeping dataset image parts, optional tool_call_id, and system multi-text paragraph separators compatible. Co-authored-by: Cursor <[email protected]>
f13de98 to
b810d7d
Compare
rai-studio-bot
left a comment
There was a problem hiding this comment.
已复核 b810d7d,先前问题均已修复,未发现新的可行动问题,审查通过。
隔离加载源码归一化函数后 51 项测试通过;完整 pytest 因缺少 Ray 无法收集,未运行需要多节点 GPU 的集成测试。当前提交尚无 CI checks,以上结论不代表 CI 已通过。
改好了 |
|
|
谢谢老师 |
…er-profiler Brings in upstream/main 653c43c..dce533b (redai-studio#257, redai-studio#258, redai-studio#285, redai-studio#323, redai-studio#330, redai-studio#335, redai-studio#408, redai-studio#409, redai-studio#412, redai-studio#414, redai-studio#416, redai-studio#417, redai-studio#419-redai-studio#421, redai-studio#424, redai-studio#426, redai-studio#427, redai-studio#430, and 42 commits synced on 10-12 without PR numbers). The only conflict is relax/utils/env.py: cc4b052 adds the DeepSeek-V4 MXFP4 QAT variables at the same spot where this branch adds the straggler profiler variables. Resolved by keeping both blocks, straggler first.







Summary
messages,tools, andchat_template_kwargs.check_messagesimage/tool-call validation so illegal inputs are rejected with stable full-path field errors (e.g.messages[2].tool_calls[0].id).Test plan
python -m pytest tests/agentic/ -q(46 passed)@SigureMo 任务已完成,请求 review.after bot reviewRelated to #321