Files
spring-ai/multimodal/output/01-wire-formats.txt
T

14 lines
1.0 KiB
Plaintext

# The same receipt image through three real Spring AI chat models (24530 bytes, PNG)
openai image as sent:
[{"text":"Extract this receipt. Your response shou... (1455 characters)","type":"text"},{"image_url":{"url":"data:image/png;base64,<32708 base64 characters>"},"type":"image_url"}]
mime label: image/png | bytes the server decoded: 24530 | sha256 matches: true
anthropic image as sent:
[{"text":"Extract this receipt. Your response shou... (1455 characters)","type":"text"},{"source":{"data":"<32708 base64 characters>","media_type":"image/png","type":"base64"},"type":"image"}]
mime label: image/png | bytes the server decoded: 24530 | sha256 matches: true
ollama image as sent:
{"role":"user","content":"Extract this receipt. Your response shou... (1455 characters)","images":["<32708 base64 characters>"]}
mime label: (none: Ollama sends bare base64) | bytes the server decoded: 24530 | sha256 matches: true
distinct image hashes seen by the server across the three providers: 1