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:
@@ -0,0 +1,12 @@
|
||||
# What comes back from OpenAiImageModel (mock server)
|
||||
|
||||
results : 1
|
||||
Image.getUrl() : null
|
||||
Image.getB64Json() len : 10500 chars
|
||||
metadata type : OpenAiImageGenerationMetadata
|
||||
revised prompt : a rewritten prompt
|
||||
response created : 1760000000
|
||||
response usage : EmptyUsage, total tokens 0 (the mock body carried usage.total_tokens=1068)
|
||||
|
||||
URL mode: Image.getUrl() = http://127.0.0.1:43039/files/ok.png
|
||||
URL mode: Image.getB64Json() = null
|
||||
Reference in New Issue
Block a user