* gateway: 400 on translated Responses images named by file_id
Add error handling for unportable current image in translate function.
* gateway: keep native file_id passthrough, reject on translation
Added hasUnportableCurrentImage function to check for images without a portable source.
* gateway: test Responses file_id image handling
A model's image input is taken from models.dev and the provider's own list, and a group's from its members: only a model known to be text-only is refused an image — one whose support is unknown still gets it, and Codex, OpenCode and Pi are told which models take images. An image the user attaches for a text-only model answers 400 in the client's own format before the upstream is asked; an image earlier in the chat, or one a tool returned (Claude Code's Read, Codex's view_image, a Chat tool message), becomes a short text note, so a chat that met a picture carries on after a switch to a text-only model. Thanks @herrkaefer.