Skip to content

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

@runxc1

Description

@runxc1

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions