[PR #13504] [MERGED] types: ConfigV2 and RootFS #60938

Closed
opened 2026-04-29 16:02:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13504
Author: @BruceMacD
Created: 12/16/2025
Status: Merged
Merged: 12/16/2025
Merged by: @BruceMacD

Base: mainHead: brucemacd/make-types-importable


📝 Commits (2)

📊 Changes

7 files changed (+48 additions, -45 deletions)

View changed files

📝 server/create.go (+5 -5)
📝 server/images.go (+1 -30)
📝 server/routes.go (+1 -1)
📝 server/routes_create_test.go (+1 -1)
📝 server/routes_delete_test.go (+1 -1)
📝 server/routes_test.go (+7 -7)
types/model/config.go (+32 -0)

📄 Description

Refactored the ConfigV2 and RootFS types from server/images.go to a new types/model/config.go file under the model package. Updated all references to use model.ConfigV2 and model.RootFS. This allows for use in other projects without worrying about compiling the c code in the llama package.


🔄 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/13504 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 12/16/2025 **Status:** ✅ Merged **Merged:** 12/16/2025 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/make-types-importable` --- ### 📝 Commits (2) - [`94eea2c`](https://github.com/ollama/ollama/commit/94eea2cb39fd4c559418710b7a655f9ea6fd5dae) types: ConfigV2 and RootFS - [`5c4d329`](https://github.com/ollama/ollama/commit/5c4d3292dc69d74fc0ec37a72b1160f8b4c9d70f) gofmt ### 📊 Changes **7 files changed** (+48 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `server/create.go` (+5 -5) 📝 `server/images.go` (+1 -30) 📝 `server/routes.go` (+1 -1) 📝 `server/routes_create_test.go` (+1 -1) 📝 `server/routes_delete_test.go` (+1 -1) 📝 `server/routes_test.go` (+7 -7) ➕ `types/model/config.go` (+32 -0) </details> ### 📄 Description Refactored the ConfigV2 and RootFS types from server/images.go to a new types/model/config.go file under the model package. Updated all references to use model.ConfigV2 and model.RootFS. This allows for use in other projects without worrying about compiling the c code in the llama package. --- <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-29 16:02:46 -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#60938