Module request

Module request 

Source
Expand description

2026-09-26: Building an image chat request, and reading the vision-token count back out.

Owner: bench, vision. Invariants: none beyond the types.

Functionsยง

body
2026-09-26: One streamed chat request carrying images, in order, then prompt.
data_uri
2026-09-26: A fixture as a base64 data: URI, labelled image/png whatever its bytes; the server picks the decoder from the bytes. The server fetches http(s) image URLs only with --vision-allow-remote-images, so a data URI works on every serve and keeps the network out of the run.
vision_tokens
2026-09-26: Vision tokens in a request: prompt_tokens minus the template overhead, or an error when overhead is larger.