mirror of
https://github.com/ollama/ollama.git
synced 2025-04-14 06:39:30 +02:00
Clear KV cache when shift operation is not supported by model. Added KvCacheCanShift() check to handle models that can't perform cache shifts, falling back to full cache clear while preserving logical token history to maintain expected behavior when context window fills up.