yangjianbo
5d1c51a37f
fix(handler): 修复 gjson 迁移后的请求校验语义回退
- OpenAI handler: 添加 gjson.ValidBytes 校验 JSON 合法性;model 校验改为
检查 gjson.String 类型而非仅判断非空(拒绝 model:123 等非法类型);stream
字段添加 True/False 类型检查;sjson.SetBytes 返回值显式处理错误
- Sora handler: 添加 gjson.ValidBytes 校验;model 校验同上改为类型检查;
messages 校验从 Exists+Type==JSON 改为 IsArray+len>0(拒绝空数组和对象)
- 补充 TestOpenAIHandler_GjsonValidation 和更新 TestSoraHandler_ValidationExtraction
覆盖新增的边界校验场景
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 09:13:20 +08:00
..
2026-02-09 20:40:09 +08:00
2026-02-09 20:40:09 +08:00
2026-02-02 22:13:50 +08:00
2026-02-05 16:05:42 +08:00
2026-02-07 22:13:45 +08:00
2026-01-09 18:26:32 +08:00
2026-02-05 12:42:54 +08:00
2026-02-07 19:04:08 +08:00
2026-02-09 20:40:09 +08:00
2026-02-07 22:14:07 +08:00
2026-01-06 20:31:40 +08:00
2026-02-07 22:13:45 +08:00
2026-02-07 17:12:15 +08:00
2025-12-28 17:48:52 +08:00
2026-02-09 07:02:12 +08:00
2026-02-06 06:56:23 +08:00
2026-02-10 09:13:20 +08:00
2026-02-10 09:13:20 +08:00
2026-02-02 22:13:50 +08:00
2025-12-26 16:45:40 +08:00
2025-12-31 08:50:12 +08:00
2025-12-31 08:50:12 +08:00
2026-02-03 13:38:44 +08:00
2026-02-10 09:13:20 +08:00
2026-02-10 09:13:20 +08:00
2025-12-26 16:45:40 +08:00
2026-02-02 22:13:50 +08:00
2026-02-07 19:46:42 +08:00
2026-02-02 22:13:50 +08:00
2026-02-06 06:56:23 +08:00