Skip to content
1 min read · 68 words

Variable: EDIT_IMAGE_FIELD_NAME

ts
const EDIT_IMAGE_FIELD_NAME: "image[]" = "image[]";

Defined in: src/batteries/generation/openai/adapter.ts:51

The multipart field name used for each image appended to an /v1/images/edits request.

Remarks

Defined once, in this one place, so the WP-0 upstream-probe finding (whether the live API expects the array-suffixed 'image[]' form or the bare 'image' form for multi-image edit requests) can flip the wire behavior by changing a single constant, with every call site and test following automatically.