bin/ollama_update in ollama-ruby-0.6.0 vs bin/ollama_update in ollama-ruby-0.7.0
- old
+ new
@@ -12,6 +12,8 @@
name, modified_at = model.name, Time.parse(model.modified_at)
infobar.puts(
"Updating model #{bold {name}} (last modified at #{modified_at.iso8601}):"
)
ollama.pull(name:)
+rescue Ollama::Errors::Error => e
+ infobar.puts "Caught #{e.class} for model #{bold { model.name }}: #{e} => Continuing."
end