ollama version and model download

オープン
#2,596 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
22/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
csharp, docker
領域
ai, devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C#
スター
637
フォーク
209
平均マージ
1日 10時間
マージ済み PR(30日)
131

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommunityToolkit/Aspire のほかの issue

CommunityToolkit/Aspire の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。