← Back to Pull requests

chore(deps): update dependency ollama/ollama to v0.40.2 #285

Closed
unknown closed this pull request without merging on Oct 16, 2026 10:18 UTC
View on GitHub
unknown unknown commented on Oct 05, 2026 12:00 UTC
Author

This PR contains the following updates:

| Package | Update | Change | Pending |
|---|---|---|---|
| ollama/ollama | minor | v0.34.3 → v0.40.2 | v0.40.5 (+2) |

---

Release Notes

<details>
<summary>ollama/ollama (ollama/ollama)</summary>

v0.40.2

Compare Source

##### Model upgrades

Models downloaded with earlier versions of Ollama are upgraded in the background the first time you run them, for better performance and compatibility when running on llama.cpp.

To make downgrading safe, Ollama keeps the original copy as a backup, so upgraded models are temporarily kept on disk. A future release will remove these backups automatically.

To remove backed up models now (requires jq):

curl -s localhost:11434/api/tags | jq -r '.models[].name' | while read -r m; do
  curl -s localhost:11434/api/show -d "{\"model\":\"$m\"}" | jq -r \
    'select(any(.manifests[]?; .runner == "llamacpp")) | .manifests[] | select(.runner == "ggml") | .digest'
done | sort -u | xargs -n1 ollama rm

This only deletes the backups. If you later downgrade to a version older than 0.40, you'll need to re-pull those models.

Other changes

  • ollama list no longer shows duplicate entries for upgraded models by @&#8203;dhiltgen in #&#8203;18874

  • ollama launch claude uses the model's full context length by @&#8203;jberg5 in #&#8203;18855

  • README: add oxi to community integrations by @&#8203;maziluiosif in #&#8203;18739
  • ##### New Contributors

  • @&#8203;maziluiosif made their first contribution in #&#8203;18739
  • Full Changelog: <https://github.com/ollama/ollama/compare/v0.40.1...v0.40.2-rc0>

    v0.40.1

    Compare Source

    ##### What's Changed

  • server: proxy cloud usage and balance APIs by @&#8203;drifkin in #&#8203;18829

  • llama: fix clef head reads past 2GiB on windows by @&#8203;Gigrise in #&#8203;18777

  • cmd: remove account step from CLI onboarding by @&#8203;hoyyeva in #&#8203;18826

  • manifest: avoid symlinks on Windows by @&#8203;dhiltgen in #&#8203;18852

  • docs: fix 6 dead links in README community integrations list by @&#8203;aniketkrs in #&#8203;18814

  • docs: fix broken download links in app README by @&#8203;chenlichao in #&#8203;18233

  • mlx: drop carried metal residency patch now that it is upstream by @&#8203;dhiltgen in #&#8203;18854
  • ##### New Contributors

  • @&#8203;Gigrise made their first contribution in #&#8203;18777

  • @&#8203;aniketkrs made their first contribution in #&#8203;18814

  • @&#8203;chenlichao made their first contribution in #&#8203;18233
  • Full Changelog: <https://github.com/ollama/ollama/compare/v0.40.0...v0.40.1-rc0>

    v0.40.0

    Compare Source

    ##### What's Changed

    Models run on MLX on Apple Silicon by default

    In this release, on Apple Silicon devices, model architectures supported by the MLX runtime will automatically run on MLX.

    ollama pull qwen3.8
    ollama run qwen3.8
    

    Additional models include gemma4, qwen3.6 and qwen3.5

    Decision models are now available on MLX as well: Nimble tev1 clef clef-flash

    MLX now has support for an embedding model: embeddinggemma-2

    We will continue testing and enabling additional models.

    Full Changelog: <https://github.com/ollama/ollama/compare/v0.35.1...v0.40.0>

    v0.35.1

    Compare Source

    ##### Clef decision models

    Ollama now supports Clef and Clef Flash, Cloudflare's new open-source decision models, through /v1/systemone.

    Clef (27B) and Clef Flash (9B) are multimodal: requests can now include images alongside the text state, shared by all questions and scored jointly with it.

    curl http://localhost:11434/v1/systemone -d '{
      "model": "clef-flash",
      "state": "The user took this screenshot.",
      "images": ["<base64-encoded image>"],
      "questions": {
        "has_ollama": {"type": "noul", "instructions": "Does this image contain Ollama?"}
      }
    }'
    

    {
      "model": "clef-flash",
      "answers": {
        "has_ollama": {
          "type": "noul",
          "noul": 0.958
        }
      },
      "usage": {
        "input_tokens": 548,
        "output_tokens": 0
      }
    }
    

    ##### What's Changed

  • Models using web search can now perform up to ten searches per response, up from three

  • Modelfiles now support CAPABILITY declarations, so model creators can explicitly declare what a model can do. Declarations are preserved when creating from GGUF or safetensors, through model inheritance, and on Modelfile export

  • ollama show and the model list now report only decision as the capability for decision models, so clients no longer offer them for general chat, tools, or thinking

  • Updated llama.cpp and the MLX engine
  • Full Changelog: <https://github.com/ollama/ollama/compare/v0.35.0...v0.35.1>

    v0.35.0

    Compare Source

    ##### Decision models

    Ollama now supports decision models through /v1/systemone, based on TypeSafe’s Jev API.

    Decision models return choices, probabilities, and scores instead of text. Use them for tasks such as ticket triage, model routing, and content classification.

    Available models:

  • Nimble from Bespoke Labs

  • Tev1 from Together AI
  • ollama pull nimble
    

    Send context and one or more questions:

    curl http://localhost:11434/v1/systemone \
      -H 'Content-Type: application/json' \
      -d '{
        "model": "nimble",
        "state": "Our checkout has returned 500 errors since 9am.",
        "questions": {
          "label": {
            "type": "choice",
            "instructions": "Which label fits this ticket?",
            "criteria": {
              "billing": "Payments and refunds",
              "bug": "Software errors",
              "account": "Login and account access"
            }
          }
        }
      }'
    

    Example response:

    {
      "model": "nimble",
      "answers": {
        "label": {
          "type": "choice",
          "choice": "bug",
          "probabilities": {
            "billing": 0.0125,
            "bug": 0.9781,
            "account": 0.0093
          },
          "confidence": 0.8906
        }
      },
      "usage": {
        "input_tokens": 174,
        "output_tokens": 1
      }
    }
    

    The API supports three question types:

  • choice: Select an option and return probabilities for each.

  • noul: Return the probability that a condition is true.

  • score: Return a score across an ordered set of criteria
  • ##### What's Changed

  • Settings now opens without waiting for model discovery.

  • Fixed the macOS update menu and icon not reflecting an available update at startup.

  • Fixed stalled MLX model downloads hanging indefinitely.

  • Requests containing the deprecated typical_p parameter now log a warning instead of failing.
  • Full Changelog: <https://github.com/ollama/ollama/compare/v0.34.4...v0.35.0>

    v0.34.4

    Compare Source

    ##### What's Changed

  • Structured outputs on thinking models now apply in a single pass, making them faster and more reliable.

  • Fixed intermittent "model not found" errors with a large local library

  • Fixed the macOS app becoming unresponsive when checking if ChatGPT or Codex is running.

  • Qwen 3.8 prompt processing is faster on Apple Silicon.

  • Gemma 4 on Apple Silicon now picks the best image resolution per image, keeping more detail in high-resolution images.

  • Updated llama.cpp, MLX, and XGrammar.
  • Full Changelog: <https://github.com/ollama/ollama/compare/v0.34.3...v0.34.4>

    </details>

    ---

    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    ♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.

    ---

    - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR has been generated by Renovate Bot.
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuOTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYnVpbGQ6ZGVwcyJdfQ==-->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: pjbgf Review duration: 15738m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #285"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%