Optional file and image inputs for OpenAI Responses API node

The idea is:

Allow the OpenAI node (Responses API) to accept optional arrays for images and files without throwing an error when one of these arrays is empty or undefined. The node should only submit the arrays that actually contain data. If images has 3 items, use all 3. If files has 0 items, skip the files parameter entirely.

My use case:

Workflows where the number of images or files depends on earlier logic. Sometimes a user uploads 3 images, sometimes none. Sometimes files are included, sometimes not. Currently the node forces me to always provide these fields when they are defined in the configuration, which breaks dynamic workflows. I need to dynamically pass only those inputs that exist without generating errors.

I think it would be beneficial to add this because:

It makes the OpenAI node consistent with other n8n nodes that accept optional arrays. It avoids unnecessary branching and If-nodes just to prevent runtime errors. This improves flexibility and reduces visual complexity.

Any resources to support this?

OpenAI Responses API documentation, which explicitly allows omitting fields like images and files when not needed.

Are you willing to work on this?

No.