[PR #10614] [MERGED] ollamarunner: Use correct constant to remove cache entries #18567

Closed
opened 2026-04-16 06:39:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10614
Author: @jessegross
Created: 5/8/2025
Status: Merged
Merged: 5/8/2025
Merged by: @jessegross

Base: mainHead: jessegross/cache_remove


📝 Commits (1)

  • 4396fd7 ollamarunner: Use correct constant to remove cache entries

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 runner/ollamarunner/cache.go (+1 -1)

📄 Description

The correct constant to remove all entries to the end of the sequence for the Ollama engine is math.MaxInt32. -1 is used by the old engine.

The impact of this is currently minimal because it would only occur in situations that are not supported by the implemented models or rarely used options.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10614 **Author:** [@jessegross](https://github.com/jessegross) **Created:** 5/8/2025 **Status:** ✅ Merged **Merged:** 5/8/2025 **Merged by:** [@jessegross](https://github.com/jessegross) **Base:** `main` ← **Head:** `jessegross/cache_remove` --- ### 📝 Commits (1) - [`4396fd7`](https://github.com/ollama/ollama/commit/4396fd706d4d710c8b7ce070943d3f8b984afb38) ollamarunner: Use correct constant to remove cache entries ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `runner/ollamarunner/cache.go` (+1 -1) </details> ### 📄 Description The correct constant to remove all entries to the end of the sequence for the Ollama engine is math.MaxInt32. -1 is used by the old engine. The impact of this is currently minimal because it would only occur in situations that are not supported by the implemented models or rarely used options. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 06:39:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#18567