mirror of
https://github.com/ollama/ollama.git
synced 2025-04-13 22:29:24 +02:00
Switch the pull and remove operations to use the client2 registry by default, removing the need to pass an experimental flag. Also simplify the progress UI during model pulls. Previously, each layer displayed its own progress bar, resulting in noisy and repetitive output: pulling manifest pulling aeda25e63ebd... 100% ▕██████████████████████████ 3.3 GB pulling e0a42594d802... 100% ▕██████████████████████████ 358 B ... writing manifest success This change replaces that with a single progress bar for the entire pull, followed by a single "Done." message: Downloading gemma3: 100% ▕█████████████████████████████▏ 3.3 GB This provides a cleaner and more intuitive experience, and aligns better with how users think about pulling models as a unit, rather than a collection of layers. To support older clients that still rely on a fixed-width Digest field, we format the Digest to be at least 20 characters long. The value includes padding and a truncated model name to prevent out-of-bounds access in legacy clients. This is a temporary compatibility hack and can be removed once all clients have adopted the new API. Updates server behavior to handle all combinations of new and old clients.