mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-14 12:02:27 +08:00
分组 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