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,9 @@
|
||||
# ImageService: scripted ImageModel, scripted moderation, real MinIO
|
||||
|
||||
moderation saw : [a red bicycle]
|
||||
ImageModel calls : 1
|
||||
options sent : OpenAiImageOptions model=gpt-image-test size=1536x1024 quality=high n=1
|
||||
prompt sent : a red bicycle
|
||||
stored : generated/happy/65ed822c50b77fecbcedfd866b567c54.png image/png 7875 bytes 64x64
|
||||
revised prompt : a red bicycle on a quiet street, photographic
|
||||
objects in bucket under generated/happy/ : 1
|
||||
Reference in New Issue
Block a user