[PR #10046] Adding a search command #75422

Open
opened 2026-05-05 07:51:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10046
Author: @Tickloop
Created: 3/29/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

📊 Changes

7 files changed (+335 additions, -0 deletions)

View changed files

📝 api/client.go (+8 -0)
📝 api/types.go (+21 -0)
📝 cmd/cmd.go (+89 -0)
📝 cmd/cmd_test.go (+102 -0)
📝 go.mod (+2 -0)
📝 server/routes.go (+19 -0)
server/search.go (+94 -0)

📄 Description

Adding a search command to the cli.
Issue: #286

It makes it easier to find and list models.

This does not pull model tags and I have left that line of work open for future once the community settles on how the search command looks and feels.

Once we are satisfied we can add a flag (--model) or a command (info) to pull model specific information such as tags, model size (bytes), license, creator, long description, etc.

note: this is a rough draft, and in no way final. The idea is to get feedback from community before moving forward.

I have followed the client <-> server architecture and the logic for parsing the output from registry.ollama.ai is fairly isolated to make it easy to refactor should a JSON api be made available.

Please provide feedback ❤️


🔄 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/10046 **Author:** [@Tickloop](https://github.com/Tickloop) **Created:** 3/29/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`6e6f29c`](https://github.com/ollama/ollama/commit/6e6f29c56fdaafd972cb7883b84a19248b076bd7) Adding search command ### 📊 Changes **7 files changed** (+335 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+8 -0) 📝 `api/types.go` (+21 -0) 📝 `cmd/cmd.go` (+89 -0) 📝 `cmd/cmd_test.go` (+102 -0) 📝 `go.mod` (+2 -0) 📝 `server/routes.go` (+19 -0) ➕ `server/search.go` (+94 -0) </details> ### 📄 Description Adding a search command to the cli. Issue: #286 It makes it easier to find and list models. This does not pull model tags and I have left that line of work open for future once the community settles on how the search command looks and feels. Once we are satisfied we can add a flag (--model) or a command (info) to pull model specific information such as tags, model size (bytes), license, creator, long description, etc. note: this is a rough draft, and in no way final. The idea is to get feedback from community before moving forward. I have followed the client <-> server architecture and the logic for parsing the output from registry.ollama.ai is fairly isolated to make it easy to refactor should a JSON api be made available. Please provide feedback :heart: --- <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-05 07:51:09 -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#75422