[PR #5441] [CLOSED] cmd: createBlob with copy on disk if local server #37653

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5441
Author: @joshyan1
Created: 7/2/2024
Status: Closed

Base: jyan/authHead: jyan/local


📝 Commits (10+)

📊 Changes

7 files changed (+344 additions, -1 deletions)

View changed files

📝 api/client.go (+17 -0)
📝 cmd/cmd.go (+112 -0)
cmd/copy_darwin.go (+23 -0)
cmd/copy_linux.go (+7 -0)
cmd/copy_windows.go (+67 -0)
📝 server/routes.go (+56 -1)
📝 server/routes_test.go (+62 -0)

📄 Description

This PR let's users with a local server to bypass the blob upload and directly copy to models directory in server.

Resolves: https://github.com/ollama/ollama/issues/4600

Changes:
added Authorization to api package to pass in Authorization headers
changed KeyPath and PublicKey methods to return objects instead of strings

TODO:
clean


🔄 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/5441 **Author:** [@joshyan1](https://github.com/joshyan1) **Created:** 7/2/2024 **Status:** ❌ Closed **Base:** `jyan/auth` ← **Head:** `jyan/local` --- ### 📝 Commits (10+) - [`f7d6485`](https://github.com/ollama/ollama/commit/f7d64856d5802ea2ece3abad7f421de4bb38bbdf) start tests - [`a993a3a`](https://github.com/ollama/ollama/commit/a993a3a85c1c6d3b82cde6c4dccc620f9144cf74) on disk copy - [`461c964`](https://github.com/ollama/ollama/commit/461c96494169def6c0efba4d69ca2c1d657ff194) benchmark - [`ad36d4f`](https://github.com/ollama/ollama/commit/ad36d4ff1b1f8f3fbd8e702bc2735af5ceb7fcc4) rebase - [`cbd98a2`](https://github.com/ollama/ollama/commit/cbd98a2e3708152be3cfc69fcc6434f887404e28) still works - [`7e8d8cc`](https://github.com/ollama/ollama/commit/7e8d8cc72fe13a89489ba4d778ecc0db344723ad) local path - [`9fbd474`](https://github.com/ollama/ollama/commit/9fbd474bf7f8c392879ffc3f6ccf4cf0fa32f8f6) clean - [`1a6197a`](https://github.com/ollama/ollama/commit/1a6197abb1e774875f7e6b77786baa57b4a64834) rm config - [`a7721cb`](https://github.com/ollama/ollama/commit/a7721cb1d26861dd99ed0bfc42396056f7bdb59e) rm config - [`e9a2ead`](https://github.com/ollama/ollama/commit/e9a2ead87adbd74cf4295ca224d8396fcbcc57d2) rm bench ### 📊 Changes **7 files changed** (+344 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+17 -0) 📝 `cmd/cmd.go` (+112 -0) ➕ `cmd/copy_darwin.go` (+23 -0) ➕ `cmd/copy_linux.go` (+7 -0) ➕ `cmd/copy_windows.go` (+67 -0) 📝 `server/routes.go` (+56 -1) 📝 `server/routes_test.go` (+62 -0) </details> ### 📄 Description This PR let's users with a local server to bypass the blob upload and directly copy to models directory in server. Resolves: https://github.com/ollama/ollama/issues/4600 Changes: added `Authorization` to api package to pass in Authorization headers changed `KeyPath` and `PublicKey` methods to return objects instead of strings TODO: clean --- <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-22 22:19:50 -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#37653