OllamaSharp icon indicating copy to clipboard operation
OllamaSharp copied to clipboard

List online models

Open rwetzold opened this issue 8 months ago • 4 comments

Would it be possible to also get a list of available Ollama models in the online library together with their usage tags (e.g. vision) and available sizes? This would be amazing and make it really easy for users and developers to provide an always up-to-date list.

rwetzold avatar May 16 '25 20:05 rwetzold

I like this idea a lot actually but I am not sure ...

  • if Ollama has their model archive machine readable (scraping is not enough for a production library)
  • if this should really be part of OllamaSharp which wants to be the best option to talk to Ollama but not really their online model archive.

awaescher avatar May 16 '25 21:05 awaescher

I indeed thought about the same but ended up still opening the issue since I perceive the library right now as the organizational layer around Ollama and Microsoft.AI as the actual execution layer moving forward. I have only tried the chat and image analysis though so far. But splitting it up in my head into these domains, I'd be using OllamaSharp for listing local and online models, pulling them, showing metadata details and informing the user etc. The selected model I'll then put into native Microsoft.AI constructs and their reference implementation. Does that make sense? So far this works nicely.

rwetzold avatar May 17 '25 06:05 rwetzold

registry.ollama.ai seems to be compatible with the docker registry v2 api, and may be used in the same way as the docker registry.

curl "https://registry.ollama.ai/v2/library/qwen2.5/manifests/0.5b"

mili-tan avatar May 17 '25 15:05 mili-tan

registry.ollama.ai seems to be compatible with the docker registry v2 api, and may be used in the same way as the docker registry.

curl "https://registry.ollama.ai/v2/library/qwen2.5/manifests/0.5b"

But I just noticed that many APIs seem to be no longer available, it seems that they switched all storage to Cloudflare R2? https://github.com/ollama/ollama/issues/5021

mili-tan avatar May 17 '25 15:05 mili-tan

Closing this because I don't think it should be part of this project.

awaescher avatar Jun 25 '25 06:06 awaescher