openai.internal._wants_image

(internal) Does the declared output type ask for images? This is the port of sys_llm's `image_generation_mode` (lib.rs:465-508): every media shape that can hold an `image` enables the provider-side image_generation tool. sys_llm set `tool_choice` for both Required and Available, so the two modes only ever differed in that one is unreachable — one predicate is enough.

Reference version

Signature

function openai.internal._wants_image(output_type: reflect.Type) -> bool

(internal) Does the declared output type ask for images? This is the port of sys_llm's image_generation_mode (lib.rs:465-508): every media shape that can hold an image enables the provider-side image_generation tool. sys_llm set tool_choice for both Required and Available, so the two modes only ever differed in that one is unreachable — one predicate is enough.

Source:<builtin>/openai/ns_internal/responses.bamlbytes 2415724279