Mistral answers a Chat request with more than 20 images with 400 "Total
number of images exceeds the maximum allowed of 20." Codex reading its
21st screenshot in one conversation failed on every later turn. Both
routes to Mistral (the Chat passthrough and the Responses-to-Chat
translation) now replace the oldest images past the newest 20 with a
short text part, in place; a request within 20 goes byte for byte, and
other vendors are not touched. Mistral's docs give no number ("depends on
the model"), so 20 is the one its error names.
Run on mote: TestMistralImageLimit (Chat route, Responses route, 20 images
unchanged, another vendor's 26 images unchanged). Broken by hand: with the
two calls off, the chat and responses cases fail. Not tried: a real
Mistral key; a model with a smaller limit than 20 (Mistral's docs do not
say any does).