We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0a2c5 commit 0aff3fbCopy full SHA for 0aff3fb
lib/ruby_llm/stream_accumulator.rb
@@ -44,7 +44,6 @@ def to_message
44
45
def tool_calls_from_stream # rubocop:disable Metrics/MethodLength
46
tool_calls.transform_values do |tc|
47
- # The key fix - handle empty string arguments
48
arguments = if tc.arguments.is_a?(String) && !tc.arguments.empty?
49
JSON.parse(tc.arguments)
50
elsif tc.arguments.is_a?(String)
0 commit comments