[PR #11589] Respond with text/event-stream (SSE) if requested #18863

Open
opened 2026-04-16 06:49:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11589
Author: @prantlf
Created: 7/30/2025
Status: 🔄 Open

Base: mainHead: sse


📝 Commits (1)

  • 5440674 Respond with text/event-stream if requested

📊 Changes

1 file changed (+21 additions, -3 deletions)

View changed files

📝 server/routes.go (+21 -3)

📄 Description

Attempts to fix #11586.

Enable the text/event-stream content type if it is the first content type in the Accept header.

Send the JSON chunks as events of the default message type.


🔄 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/11589 **Author:** [@prantlf](https://github.com/prantlf) **Created:** 7/30/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sse` --- ### 📝 Commits (1) - [`5440674`](https://github.com/ollama/ollama/commit/54406748dc77b923c6501f2a3430138df2934905) Respond with text/event-stream if requested ### 📊 Changes **1 file changed** (+21 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+21 -3) </details> ### 📄 Description Attempts to fix #11586. Enable the `text/event-stream` content type if it is the first content type in the `Accept` header. Send the JSON chunks as events of the default `message` type. --- <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-16 06:49:52 -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#18863