Skip to content

Commit b809d72

Browse files
committed
rubocop fix
1 parent 3cb3557 commit b809d72

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/completions/endpoints/canned_response.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ def perform_completion!(
5050

5151
# We buffer and return tool invocations in one go.
5252
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)
5858
elsif model_params[:response_format].present?
59-
structured_output = as_structured_output(response)
59+
structured_output = as_structured_output(_response)
6060
yield(structured_output, cancel_fn)
6161
else
62-
response.each_char do |char|
62+
_response.each_char do |char|
6363
break if cancelled
6464
yield(char, cancel_fn)
6565
end

0 commit comments

Comments
 (0)