[PR #937] [MERGED] clean up: remove server functions from client #88380

Closed
opened 2026-05-10 07:08:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/937
Author: @BruceMacD
Created: 10/27/2023
Status: Merged
Merged: 10/30/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/no-server-client


📝 Commits (2)

  • 08b19b8 remove server functions from client
  • 42c5a06 use a switch instead of if/else

📊 Changes

2 files changed (+28 additions, -27 deletions)

View changed files

📝 cmd/cmd.go (+12 -27)
📝 server/routes.go (+16 -0)

📄 Description

We have had trouble with cross-account file permission when the Ollama client and server are running as different users. This change is a small clean up to remove all calls to server package code from the client (except for server.Run()), from now on we should not call anymore server package functions from cmd to prevent bugs.


🔄 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/937 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 10/27/2023 **Status:** ✅ Merged **Merged:** 10/30/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/no-server-client` --- ### 📝 Commits (2) - [`08b19b8`](https://github.com/ollama/ollama/commit/08b19b8afb048dee83fc69a8f2c8298d7e544569) remove server functions from client - [`42c5a06`](https://github.com/ollama/ollama/commit/42c5a06247e7c6f1206c70dc560b74a380b23d87) use a switch instead of if/else ### 📊 Changes **2 files changed** (+28 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+12 -27) 📝 `server/routes.go` (+16 -0) </details> ### 📄 Description We have had trouble with cross-account file permission when the Ollama client and server are running as different users. This change is a small clean up to remove all calls to server package code from the client (except for `server.Run()`), from now on we should not call anymore server package functions from `cmd` to prevent bugs. --- <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-10 07:08:17 -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#88380