Skip to content

Ollama model out of date and no way to update (0.6.8) #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
runxc1 opened this issue May 5, 2025 · 2 comments · Fixed by #676
Closed

Ollama model out of date and no way to update (0.6.8) #672

runxc1 opened this issue May 5, 2025 · 2 comments · Fixed by #676

Comments

@runxc1
Copy link

runxc1 commented May 5, 2025

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

@Alirexaa
Copy link
Member

Alirexaa commented May 5, 2025

You can use WithImageTag to override the tag.

@Alirexaa Alirexaa closed this as completed May 5, 2025
@Alirexaa
Copy link
Member

Alirexaa commented May 7, 2025

Reopen to update image tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants