[PR #12816] refactor: iterator based http client for ollama server #76262

Open
opened 2026-05-05 08:46:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12816
Author: @mxyng
Created: 10/29/2025
Status: 🔄 Open

Base: mainHead: mxyng/iter-client


📝 Commits (5)

📊 Changes

7 files changed (+343 additions, -217 deletions)

View changed files

📝 api/client.go (+0 -49)
client/client.go (+188 -0)
📝 cmd/cmd.go (+27 -167)
📝 cmd/interactive.go (+1 -1)
cmd/list.go (+58 -0)
cmd/pull.go (+37 -0)
cmd/remove.go (+32 -0)

📄 Description

add an iterator-based http client. this enables a cleaner interface for consuming streamed responses. this client also merges common features of the streaming and non-streaming request handlers


🔄 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/12816 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/29/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `mxyng/iter-client` --- ### 📝 Commits (5) - [`ec8a9f1`](https://github.com/ollama/ollama/commit/ec8a9f11ae1a6d21222da299282124fe27b93056) iter client - [`a3df958`](https://github.com/ollama/ollama/commit/a3df9580321dd8796c4dc5a0dfea46487fbb0770) version - [`9295421`](https://github.com/ollama/ollama/commit/929542140f1d72d890f1d5a89974d445df2cbb90) list - [`9bee245`](https://github.com/ollama/ollama/commit/9bee2450e9d20aff4cddef76f298899954aa4839) pull - [`d896e53`](https://github.com/ollama/ollama/commit/d896e53c08277a4ee28da19cead2766a9039cd6c) remove ### 📊 Changes **7 files changed** (+343 additions, -217 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+0 -49) ➕ `client/client.go` (+188 -0) 📝 `cmd/cmd.go` (+27 -167) 📝 `cmd/interactive.go` (+1 -1) ➕ `cmd/list.go` (+58 -0) ➕ `cmd/pull.go` (+37 -0) ➕ `cmd/remove.go` (+32 -0) </details> ### 📄 Description add an iterator-based http client. this enables a cleaner interface for consuming streamed responses. this client also merges common features of the streaming and non-streaming request handlers --- <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-05-05 08:46:30 -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#76262