li
a02700c16f
fix(image): 识别 Codex namespace image_gen 工具声明以拦截生图请求
分组 allow_image_generation=false 时,Codex /image 技能通过
namespace 工具声明(type=namespace, name=image_gen)和 Responses
Lite 的 input additional_tools 绕过了现有生图意图检测——现有逻辑
只识别 tools[].type == "image_generation" 这一种形式。
在 gjson 版(openAIJSONToolsContainImageGeneration)和 map 版
(hasOpenAIImageGenerationTool)检测中增加 namespace image_gen
识别;同时扫描 input[].type == "additional_tools" 中嵌套的工具
声明,覆盖 Responses Lite 格式。
Fixes #3608
2026-07-07 16:58:48 +08:00
..
2026-07-07 15:14:37 +08:00
2026-07-06 12:22:04 +08:00
2026-07-07 16:58:48 +08:00
2026-07-06 14:25:10 +08:00
2026-07-07 03:27:11 +08:00
2026-07-01 14:25:46 +08:00
2026-07-01 14:25:46 +08:00
2026-07-02 11:42:10 +08:00
2026-07-02 11:42:10 +08:00
2026-07-01 14:25:46 +08:00