[PR #14897] [MERGED] cloud_proxy: for the web_search legacy path, flush on newlines #14905

Closed
opened 2026-04-13 01:05:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14897
Author: @drifkin
Created: 3/17/2026
Status: Merged
Merged: 3/17/2026
Merged by: @drifkin

Base: mainHead: drifkin/cloud-search-framing


📝 Commits (1)

  • 0eb3a4b cloud_proxy: for the web_search legacy path, flush on newlines

📊 Changes

3 files changed (+197 additions, -1 deletions)

View changed files

📝 server/cloud_proxy.go (+68 -1)
📝 server/cloud_proxy_test.go (+68 -0)
📝 server/routes_cloud_test.go (+61 -0)

📄 Description

WebSearchAnthropicWriter expects a single object per write. The new transparent proxy will instead send it whatever bytes it sees. This cloud-model + local-orchestration + cloud-search is a temporary code path, so instead of making the web search code more robust to this, I put an adapter in the middle that will flush line-by-line to preserve the old behavior.


🔄 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/14897 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 3/17/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/cloud-search-framing` --- ### 📝 Commits (1) - [`0eb3a4b`](https://github.com/ollama/ollama/commit/0eb3a4beed97dcb3e53461555545c4863052bae7) cloud_proxy: for the web_search legacy path, flush on newlines ### 📊 Changes **3 files changed** (+197 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/cloud_proxy.go` (+68 -1) 📝 `server/cloud_proxy_test.go` (+68 -0) 📝 `server/routes_cloud_test.go` (+61 -0) </details> ### 📄 Description `WebSearchAnthropicWriter` expects a single object per write. The new transparent proxy will instead send it whatever bytes it sees. This cloud-model + local-orchestration + cloud-search is a temporary code path, so instead of making the web search code more robust to this, I put an adapter in the middle that will flush line-by-line to preserve the old behavior. --- <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 01:05:20 -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#14905