File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/completions/endpoints Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ def perform_completion!(
50
50
51
51
# We buffer and return tool invocations in one go.
52
52
as_array = response . is_a? ( Array ) ? response : [ response ]
53
- as_array . each do |response |
54
- if is_tool? ( response )
55
- yield ( response , cancel_fn )
56
- elsif is_thinking? ( response )
57
- yield ( response , cancel_fn )
53
+ as_array . each do |_response |
54
+ if is_tool? ( _response )
55
+ yield ( _response , cancel_fn )
56
+ elsif is_thinking? ( _response )
57
+ yield ( _response , cancel_fn )
58
58
elsif model_params [ :response_format ] . present?
59
- structured_output = as_structured_output ( response )
59
+ structured_output = as_structured_output ( _response )
60
60
yield ( structured_output , cancel_fn )
61
61
else
62
- response . each_char do |char |
62
+ _response . each_char do |char |
63
63
break if cancelled
64
64
yield ( char , cancel_fn )
65
65
end
You can’t perform that action at this time.
0 commit comments