[PR #13853] [MERGED] x/imagegen: respect stream=false in /api/generate #14420

Closed
opened 2026-04-13 00:53:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13853
Author: @jmorganca
Created: 1/23/2026
Status: Merged
Merged: 1/23/2026
Merged by: @jmorganca

Base: mainHead: fix-imagegen-stream-false


📝 Commits (1)

  • d781fdf x/imagegen: respect stream=false in /api/generate

📊 Changes

2 files changed (+113 additions, -2 deletions)

View changed files

📝 server/routes.go (+20 -2)
📝 server/routes_generate_test.go (+93 -0)

📄 Description

When stream=false is set for image generation requests, return a single JSON response instead of streaming multiple ndjson progress updates.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13853 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 1/23/2026 **Status:** ✅ Merged **Merged:** 1/23/2026 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `fix-imagegen-stream-false` --- ### 📝 Commits (1) - [`d781fdf`](https://github.com/ollama/ollama/commit/d781fdfbf104b301b4955cc8b14051e77b1cd3b8) x/imagegen: respect stream=false in /api/generate ### 📊 Changes **2 files changed** (+113 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+20 -2) 📝 `server/routes_generate_test.go` (+93 -0) </details> ### 📄 Description When stream=false is set for image generation requests, return a single JSON response instead of streaming multiple ndjson progress updates. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:53:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#14420