ollama version and model download

Abierto
#2,596 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
csharp, docker
Área
ai, devops

Línea de trabajo

The failure is a 412 response from Ollama's /api/pull, surfaced by PullModelAsync in CommunityToolkit.Aspire.Hosting.Ollama/OllamaUtilities.cs (around line 49), which wraps the OllamaSharp client. Start by reproducing with the AddOllama and AddModel calls from the report, then check how the pull error is logged and reported to the resource. The issue does not say what the expected behavior is, so confirm with maintainers whether the fix is a clearer error, an image-tag change, or a version check before coding. Done means a defined outcome for the newer-version case, with a test.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

Ollama download error when model requires a newer version throws an exception:

 2026-11-25T01:16:18.022Z: [qwen3-embedding:latest] needs to be downloaded for ha-ai-qwen-embedding
 2026-11-25T01:16:18.022Z: [qwen3.8:latest] needs to be downloaded for ha-ai-qwen-thinking
 2026-11-25T01:16:18.022Z: [d3:latest] needs to be downloaded for ha-ai-d3-decision
 2026-11-25T01:16:18.026Z: Pulling ollama model qwen3.8:latest...
 2026-11-25T01:16:18.026Z: Pulling ollama model d3:latest...
 2026-11-25T01:16:18.026Z: Pulling ollama model qwen3-embedding:latest...
 [GIN] 2026/11/25 - 01:16:18 | 200 |  804.946349ms |      172.19.0.1 | POST     "/api/pull"
  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()
   at CommunityToolkit.Aspire.Hosting.Ollama.OllamaUtilities.PullModelAsync(OllamaModelResource resource, IOllamaApiClient ollamaClient, String model, ILogger logger, ResourceNotificationService notificationService, CancellationToken cancellationToken) in /_/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaUtilities.cs:line 49
   at CommunityToolkit.Aspire.Hosting.Ollama.OllamaUtilities.PullModelAsync(OllamaModelResource resource, IOllamaApiClient ollamaClient, String model, ILogger logger, ResourceNotificationService notificationService, CancellationToken cancellationToken) in /_/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaUtilities.cs:line 49
  time=2026-11-25T01:16:18.946Z level=INFO source=download.go:181 msg="downloading 3fcd3febec8b in 16 292 MB part(s)"

Regression

No response

Steps to reproduce
/*:
var zscaler = distributedApplicationBuilder
    .AddCertificateAuthorityCollection("ha-certs")
        .WithCertificatesFromFile( 
            Path.Combine(
                Environment.GetFolderPath(
                    Environment.SpecialFolder.DesktopDirectory
                ),
                "Zscaler Root CA.crt"
            )
        );
*/
/*: */
var ai = distributedApplicationBuilder.AddOllama(name: "ha-ai")
    .WithImageTag("latest");

var aithinking  = ai.AddModel(name: "ha-ai-qwen-thinking" , modelName: "qwen3.8:latest");
var aiembedding = ai.AddModel(name: "ha-ai-qwen-embedding", modelName: "qwen3-embedding:latest");
var aidecision  = ai.AddModel(name: "ha-ai-d3-decision", modelName:"d3:latest");


// ai.WithCertificateAuthorityCollection(zscaler);
ai.PublishAsContainer();
Expected behavior

``

Screenshots

No response

IDE and version

Other

IDE version

VS 2026

Nuget packages

Additional context

No response

Help us help you

No, just wanted to report this

Lenguaje dominante
C#
Estrellas
637
Forks
209
Merge medio
1 d 10 h
PR fusionados (30 d)
131

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CommunityToolkit/Aspire

Todos los issues de CommunityToolkit/Aspire

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.