[PR #1732] [CLOSED] Add list-remote command line option #21195

Closed
opened 2026-04-19 15:30:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1732
Author: @kris-hansen
Created: 12/28/2023
Status: Closed

Base: mainHead: main


📝 Commits (10+)

  • 414b469 feat: add list-remote to view remote models
  • b05c083 fix: updates based on PR comments
  • 549fe51 Merge pull request #1 from kris-hansen/list-remote
  • f5cf66f feat: add list-remote to view remote models
  • ae1a0ee fix: updates based on PR comments
  • bd65a87 Merge pull request #2 from kris-hansen/rebase
  • 0869420 feat: add list-remote to view remote models
  • 7dc4505 fix: updates based on PR comments
  • f53dbfb feat: add list-remote to view remote models
  • fc06443 fix: updates based on PR comments

📊 Changes

7 files changed (+368 additions, -83 deletions)

View changed files

📝 .gitignore (+2 -1)
📝 cmd/cmd.go (+77 -0)
📝 go.mod (+2 -0)
📝 go.sum (+27 -0)
📝 gpu/gpu_info_cuda.c (+247 -81)
📝 gpu/gpu_info_cuda.h (+12 -0)
📝 llm/llama.cpp (+1 -1)

📄 Description

  • Added a feature to be able to fetch the model library from ollama.ai/library
  • This makes it easier to determine which models are available to pull without leaving the command line world
  • using goquery to make the HTML parsing a bit more manageable, added error handling to improve the error reporting in case the html changes
  • I realize that parsing the html is a bit hacky, this can be improved in the future by hosting a models.json and then using this to feed the html list (as well as being easier to fetch and parse from the cli) - but this method should be durable provided that the current library page structure remains intact

🔄 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/1732 **Author:** [@kris-hansen](https://github.com/kris-hansen) **Created:** 12/28/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`414b469`](https://github.com/ollama/ollama/commit/414b469f9c58077f8179b0a0031a4c715b229594) feat: add list-remote to view remote models - [`b05c083`](https://github.com/ollama/ollama/commit/b05c083bbd00e0992a92bb0d2410b3da82f44d7d) fix: updates based on PR comments - [`549fe51`](https://github.com/ollama/ollama/commit/549fe51744a2df47f0410a69c3963566288886a2) Merge pull request #1 from kris-hansen/list-remote - [`f5cf66f`](https://github.com/ollama/ollama/commit/f5cf66fa1ded8d7e876f185ef272a10eeca5792b) feat: add list-remote to view remote models - [`ae1a0ee`](https://github.com/ollama/ollama/commit/ae1a0ee1998fb8f31949333530f95638337360a5) fix: updates based on PR comments - [`bd65a87`](https://github.com/ollama/ollama/commit/bd65a87f5127ff82892be338c8c8ff8f1db125d1) Merge pull request #2 from kris-hansen/rebase - [`0869420`](https://github.com/ollama/ollama/commit/08694208d0901eb51bdeb931e3a3475f4baecbf6) feat: add list-remote to view remote models - [`7dc4505`](https://github.com/ollama/ollama/commit/7dc45054dbc9fb124319eeb67aa1de9d131c800b) fix: updates based on PR comments - [`f53dbfb`](https://github.com/ollama/ollama/commit/f53dbfb802c460e5031cd135fdb897f48458f5f0) feat: add list-remote to view remote models - [`fc06443`](https://github.com/ollama/ollama/commit/fc06443e83df37822595f150317a3aadac553208) fix: updates based on PR comments ### 📊 Changes **7 files changed** (+368 additions, -83 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -1) 📝 `cmd/cmd.go` (+77 -0) 📝 `go.mod` (+2 -0) 📝 `go.sum` (+27 -0) 📝 `gpu/gpu_info_cuda.c` (+247 -81) 📝 `gpu/gpu_info_cuda.h` (+12 -0) 📝 `llm/llama.cpp` (+1 -1) </details> ### 📄 Description - Added a feature to be able to fetch the model library from ollama.ai/library - This makes it easier to determine which models are available to pull without leaving the command line world - using goquery to make the HTML parsing a bit more manageable, added error handling to improve the error reporting in case the html changes - I realize that parsing the html is a bit hacky, this can be improved in the future by hosting a models.json and then using this to feed the html list (as well as being easier to fetch and parse from the cli) - but this method should be durable provided that the current library page structure remains intact --- <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-19 15:30:18 -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#21195