Add image-gen module: Spring AI ImageModel options on the wire, a moderation gate, and safe storage of generated images in MinIO (sniffed content type, byte and pixel caps, server-chosen keys, capped URL fetcher); per-provider cost table dated 2026-10-28. ImageModel and ModerationModel are hand-written fakes; MinIO is real via Testcontainers; no image provider called.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
This commit is contained in:
2026-10-28 18:36:40 +00:00
co-authored by Claude Sonnet 5.5
parent 108fc44542
commit aa8b1604ed
48 changed files with 2112 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# RemoteFetcher against a local image host
case result
allowed host, 200 OK 7875 bytes
302 redirect to the same host fetch-status: 302
endless body (cap 1 MiB) too-large: download passed the 1048576-byte cap
host not on the list host-not-allowed: localhost
file:// URL bad-scheme: file
http:// when insecure is off bad-scheme: http
cloud metadata address host-not-allowed: 169.254.169.254