ollama/middleware
Jeffrey Morgan 634c416645
Add experimental image generation fields to /api/generate (#13753)
Request fields (experimental):
- width: image width (max 4096)
- height: image height (max 4096)
- steps: denoising steps
- seed: random seed

Response fields (experimental):
- images: base64-encoded generated images
- completed: current step progress
- total: total steps

Other changes:
- Fix lifecycle bug where image models wouldn't unload (refCount issue)
- Fix "headers already written" error on Ctrl+C during streaming
- Add gin middleware for OpenAI /v1/images/generations compatibility
- Update CLI to use /api/generate with progress bar
- Add preload support in interactive mode
2026-01-17 18:27:41 -08:00
..
anthropic.go anthropic: allow non-thinking models when using Anthropic API (#13692) 2026-01-12 15:13:26 -08:00
anthropic_test.go anthropic: allow non-thinking models when using Anthropic API (#13692) 2026-01-12 15:13:26 -08:00
openai.go Add experimental image generation fields to /api/generate (#13753) 2026-01-17 18:27:41 -08:00
openai_encoding_format_test.go embeddings: base64 encoding fix (#12715) 2025-10-22 11:27:44 -07:00
openai_test.go Add experimental image generation fields to /api/generate (#13753) 2026-01-17 18:27:41 -08:00