Commit dabb856

mo khan <mo@mokhan.ca>
2026-03-11 22:00:35
refactor: merge tool call event type
1 parent a90ce8d
Changed files (1)
lib
elelem
lib/elelem/net/ollama.rb
@@ -41,7 +41,7 @@ module Elelem
 
         if message["tool_calls"]
           parsed = parse_tool_calls(message["tool_calls"])
-          parsed.each { |tc| block.call(type: "doing", **tc) }
+          parsed.each { |tc| block.call(tc.merge(type: "doing")) }
           tool_calls.concat(parsed)
         end
       end