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-10 00:37:47 +08:00
2026-02-09 20:40:09 +08:00
2026-02-10 09:13:20 +08:00
2026-02-09 20:40:09 +08:00
2026-02-06 07:14:46 +08:00
2026-01-11 23:00:31 +08:00
2026-01-11 23:49:03 +08:00
2026-02-06 07:41:23 +08:00
2026-02-09 20:40:09 +08:00
2026-02-09 20:40:09 +08:00
2026-02-08 12:05:39 +08:00