mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
openAIRequestBodyHasImageGenerationDeclaration and openAIRequestBodyImageGenerationToolNeedsNormalization each validate the whole body up front before looking at tools/input/tool_choice. Both branches only match image_gen literals, so the same byte-level necessary condition applies and lets them skip the validation for bodies that cannot match. Refs #8865