tzt
3250e4e099
feat(proxy): T-P5 规范化+桶(canonical_hash 五规则/整形顺序/doc_version 失效)
- normalizer.py:resolve_bucket(X-Campus-Bucket 头 > 映射 > default,D-P2);
normalize_messages(role\u0001content\u0002 串接,剔易变字段与时间戳行,
多模态 content 取 text);is_cacheable(system 外 >1 条 = 多轮不缓存,D-P5);
canonical_hash(bucket|doc_version|sha256(norm)——模板/资料不参与哈希,
资料更新 = 版本+1 旧键失效);shape([canonical_system(无才注入)] ->
[课程资料前缀(文件读取,不入git)] -> [原 messages],易变顶层字段剔除)
- 测试 +8:同义同哈希/易变剔除/模板不入哈希/doc_version 失效/多轮判定/
整形顺序+资料注入/桶解析回落/序列化形态,全量 370 passed
2026-09-05 09:40:05 +08:00
..
2026-09-05 08:35:31 +08:00
2026-09-05 09:05:59 +08:00
2026-09-05 09:05:59 +08:00
2026-09-05 08:35:31 +08:00
2026-09-05 08:35:31 +08:00
2026-09-05 09:05:59 +08:00
2026-09-05 09:05:59 +08:00
2026-09-05 09:40:05 +08:00
2026-09-05 09:18:51 +08:00
2026-09-05 09:35:12 +08:00
2026-09-05 08:35:31 +08:00
2026-09-05 09:14:31 +08:00