Commit 0ffbd95

2026-09-12 21:59:51
style: apply rubocop autocorrect
1 parent f96f2af
Changed files (2)
lib
lib/elelem/candle/provider.rb
@@ -10,7 +10,7 @@ module Elelem
         @model = Elelem::Candle::Model.new(model, device)
       end
 
-      def fetch(messages, tools = [], &block)
+      def fetch(messages, _tools = [], &block)
         # TODO: real chat templating + tool-call parsing, mirroring
         # elelem-llama's provider.rb. For now: single-turn text generation.
         prompt = messages.map { |m| "#{m[:role] || m["role"]}: #{m[:content] || m["content"]}" }.join("\n")
lib/elelem/candle.rb
@@ -10,7 +10,9 @@ require_relative "candle/provider"
 Elelem.configure do |config|
   config.provider(:candle) do
     Elelem::Candle::Provider.new(
-      model: ENV.fetch("ELELEM_CANDLE_MODEL") { raise "set ELELEM_CANDLE_MODEL=/path/to/model (safetensors dir or hf repo id)" }
+      model: ENV.fetch("ELELEM_CANDLE_MODEL") do
+        raise "set ELELEM_CANDLE_MODEL=/path/to/model (safetensors dir or hf repo id)"
+      end
     )
   end
 end