openai.internal._oai_images_prompt_text

(internal) The rendered prompt as one text block, joined with a blank line. Roles carry no meaning for an image endpoint, so they are discarded (sys_llm's gateway builder does the same). Journal user turns follow the prompt so a re-ask still reaches the model; assistant turns and tool traffic have no representation here.

Reference version

Signature

function openai.internal._oai_images_prompt_text(
prompt: ai.Prompt,
journal: ai.Journal
) -> string throws ai.errors.InvalidRequest

(internal) The rendered prompt as one text block, joined with a blank line. Roles carry no meaning for an image endpoint, so they are discarded (sys_llm's gateway builder does the same). Journal user turns follow the prompt so a re-ask still reaches the model; assistant turns and tool traffic have no representation here.

Source:<builtin>/openai/ns_internal/images.bamlbytes 61486841