10 lines
257 B
Ruby
10 lines
257 B
Ruby
require 'ruby_llm'
|
|
|
|
RubyLLM.configure do |config|
|
|
config.ollama_api_base = "http://127.0.0.1:11434/v1"
|
|
end
|
|
|
|
chat = RubyLLM.chat(model: 'qwen3:8b', provider: :ollama)
|
|
|
|
print chat.ask "What's the best way to learn Ruby? Answer in 10 words or less /nothink"
|