Skip to content

Commit c8cd658

Browse files
committed
Hint about need for models.refresh!
1 parent 8b0eb78 commit c8cd658

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/ruby_llm/providers/ollama/models.rb

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ def models_url
1717
#
1818
# create an alias gemma3 for gemma3:27b
1919

20+
# NOTE: Unlike other providers for well known APIs with stable model
21+
# offerings, the Ollama provider deals with local servers which
22+
# might have arbitrarily named models or even zero models installed.
23+
#
24+
# Thus, this provider can't ship hardcoded assumptions in models.json
25+
# and thus no Ollama models will be known at runtime, so you'll need a
26+
# `RubyLLM.models.refresh!` to populate your instance's models.
27+
2028
def list_models
2129
return [] unless enabled?
2230

0 commit comments

Comments
 (0)