[PR #91] [MERGED] fix stream errors #9978

Closed
opened 2026-04-12 22:49:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/91
Author: @mxyng
Created: 7/17/2023
Status: Merged
Merged: 7/20/2023
Merged by: @mxyng

Base: mainHead: fix-stream-errors


📝 Commits (1)

📊 Changes

3 files changed (+13 additions, -15 deletions)

View changed files

📝 api/client.go (+4 -0)
📝 server/images.go (+0 -7)
📝 server/routes.go (+9 -8)

📄 Description

once the stream is created, it's too late to update response headers (i.e. status code). any and all errors must be returned by the stream


🔄 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/91 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/17/2023 **Status:** ✅ Merged **Merged:** 7/20/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `fix-stream-errors` --- ### 📝 Commits (1) - [`1f27d7f`](https://github.com/ollama/ollama/commit/1f27d7f1b8bff58c63753ae2bb29de38454928d6) fix stream errors ### 📊 Changes **3 files changed** (+13 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+4 -0) 📝 `server/images.go` (+0 -7) 📝 `server/routes.go` (+9 -8) </details> ### 📄 Description once the stream is created, it's too late to update response headers (i.e. status code). any and all errors must be returned by the stream --- <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-12 22:49:09 -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#9978