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

Closed
opened 2026-04-13 00:23:07 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10614

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/ollama/ollama/pull/10614 **State:** closed **Merged:** Yes --- 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.
GiteaMirror added the pull-request label 2026-04-13 00:23:07 -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#13296