[PR #3541] [MERGED] types/model: init with Name and Digest types #16463

Closed
opened 2026-04-16 05:31:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3541
Author: @bmizerany
Created: 4/8/2024
Status: Merged
Merged: 4/10/2024
Merged by: @bmizerany

Base: mainHead: bmizerany/model


📝 Commits (6)

  • 80e1d08 types/model: init with Name and Digest types
  • da2645e Update types/model/name.go
  • e3e46e0 types/model: fix typo
  • 9ce9a5f introduce DisplayShortest with mask and DefaultMask
  • bd3f229 rm unused bufPool
  • 00550cd doc update

📊 Changes

11 files changed (+1264 additions, -0 deletions)

View changed files

types/model/digest.go (+120 -0)
types/model/digest_test.go (+46 -0)
types/model/name.go (+581 -0)
types/model/name_test.go (+490 -0)
types/model/testdata/fuzz/FuzzParseRef/1d43ee52085cb4aa (+2 -0)
types/model/testdata/fuzz/FuzzParseRef/27fd759314f0e6d6 (+2 -0)
types/model/testdata/fuzz/FuzzParseRef/3e3b70dba384074d (+2 -0)
types/model/testdata/fuzz/FuzzParseRef/71f1fdff711b6dab (+2 -0)
types/model/testdata/fuzz/FuzzParseRef/82c2975c430ac608 (+2 -0)
types/model/testdata/fuzz/FuzzParseRef/b51b1c875e61a948 (+2 -0)
types/structs/structs.go (+15 -0)

📄 Description

No description provided


🔄 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/3541 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 4/8/2024 **Status:** ✅ Merged **Merged:** 4/10/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/model` --- ### 📝 Commits (6) - [`80e1d08`](https://github.com/ollama/ollama/commit/80e1d08eb97bcfaac4a1bbb3bcad48a695b25990) types/model: init with Name and Digest types - [`da2645e`](https://github.com/ollama/ollama/commit/da2645e559ed42760f6021f8541a81d794c5a897) Update types/model/name.go - [`e3e46e0`](https://github.com/ollama/ollama/commit/e3e46e0c8bbfa3d8e6629d63acf5ecc09ec8b0ac) types/model: fix typo - [`9ce9a5f`](https://github.com/ollama/ollama/commit/9ce9a5f4808ff701698063c4abb7483381bc1937) introduce DisplayShortest with mask and DefaultMask - [`bd3f229`](https://github.com/ollama/ollama/commit/bd3f2293bed69319811e00e98475ccba023de99e) rm unused bufPool - [`00550cd`](https://github.com/ollama/ollama/commit/00550cdd098092c61b48f5d35bab2cea29ccdfd5) doc update ### 📊 Changes **11 files changed** (+1264 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `types/model/digest.go` (+120 -0) ➕ `types/model/digest_test.go` (+46 -0) ➕ `types/model/name.go` (+581 -0) ➕ `types/model/name_test.go` (+490 -0) ➕ `types/model/testdata/fuzz/FuzzParseRef/1d43ee52085cb4aa` (+2 -0) ➕ `types/model/testdata/fuzz/FuzzParseRef/27fd759314f0e6d6` (+2 -0) ➕ `types/model/testdata/fuzz/FuzzParseRef/3e3b70dba384074d` (+2 -0) ➕ `types/model/testdata/fuzz/FuzzParseRef/71f1fdff711b6dab` (+2 -0) ➕ `types/model/testdata/fuzz/FuzzParseRef/82c2975c430ac608` (+2 -0) ➕ `types/model/testdata/fuzz/FuzzParseRef/b51b1c875e61a948` (+2 -0) ➕ `types/structs/structs.go` (+15 -0) </details> ### 📄 Description _No description provided_ --- <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-16 05:31:12 -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#16463