Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
ollamarunner: Use correct constant to remove cache entries
Jesse Gross3d9498a42550
diff --git a/runner/ollamarunner/cache.go b/runner/ollamarunner/cache.goindex 01f435e4b..2138d7988 100644--- a/runner/ollamarunner/cache.go+++ b/runner/ollamarunner/cache.go@@ -284,7 +284,7 @@ func (c *InputCache) ShiftCacheSlot(slot *InputCacheSlot, numKeep int32) error {copy(newInputs[numKeep:], slot.Inputs[numKeep+discard:])// Reset the cache- _ = c.cache.Remove(slot.Id, 0, -1)+ _ = c.cache.Remove(slot.Id, 0, math.MaxInt32)slot.Inputs = []input.Input{}// Return error with inputs that need to be reprocessed