- 
                Notifications
    You must be signed in to change notification settings 
- Fork 131
Closed
Description
Describe the bug
I have a very basic setup, I'm attempting to pull down a popular model that is a week or so old (which I assume everyone is doing) and the ollama configuration is setup to pull a specific tag and not latest so I get the following startup error in the console logs for the model.
"The model you are attempting to pull requires a newer version of Ollama."
Regression
No response
Steps to reproduce
var ollama = builder.AddOllama("ollama");
  var model = ollama.AddModel("gemma3:12b");
Expected behavior
For it to be hard coded to latest or let me choose the image or tag for ollama
Screenshots
2025-05-05T18:57:09.583Z: Pulling ollama model gemma3:12b...
 Error pulling model
OllamaSharp.Models.Exceptions.ResponseError: pull model manifest: 412: 
The model you are attempting to pull requires a newer version of Ollama.
Please download the latest version at:
	https://ollama.com/download
   at OllamaSharp.OllamaApiClient.ProcessStreamedResponseAsync[TLine](HttpResponseMessage response, CancellationToken cancellationToken)+MoveNext()
   at OllamaSharp.OllamaApiClient.ProcessStreamedResponseAsync[TLine](HttpResponseMessage response, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
   at OllamaSharp.OllamaApiClient.StreamPostAsync[TRequest,TResponse](String endpoint, TRequest ollamaRequest, CancellationToken cancellationToken)+MoveNext()
   at OllamaSharp.OllamaApiClient.StreamPostAsync[TRequest,TResponse](String endpoint, TRequest ollamaRequest, CancellationToken cancellationToken)+MoveNext()
   at OllamaSharp.OllamaApiClient.StreamPostAsync[TRequest,TResponse](String endpoint, TRequest ollamaRequest, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
   at OllamaSharp.OllamaApiClient.PullModelAsync(PullModelRequest request, CancellationToken cancellationToken)+MoveNext()
   at OllamaSharp.OllamaApiClient.PullModelAsync(PullModelRequest request, CancellationToken cancellationToken)+MoveNext()
   at OllamaSharp.OllamaApiClient.PullModelAsync(PullModelRequest request, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
IDE and version
VS 2022
IDE version
Version 17.13.6
Nuget packages
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Ollama" Version="9.4.0" />
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
Metadata
Metadata
Assignees
Labels
No labels