From 4fe84da2ea034d3aca77110e3b06dc421d5faa4e Mon Sep 17 00:00:00 2001 From: Alex Rudall Date: Sun, 26 Nov 2023 18:17:04 +0000 Subject: [PATCH] Rubocop --- lib/openai.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openai.rb b/lib/openai.rb index 3aea0f21..0ddc1301 100644 --- a/lib/openai.rb +++ b/lib/openai.rb @@ -26,7 +26,7 @@ def call(env) raise e unless e.response.is_a?(Hash) logger = Logger.new($stdout) - logger.formatter = proc do |severity, datetime, progname, msg| + logger.formatter = proc do |_severity, _datetime, _progname, msg| "\033[31mOpenAI HTTP Error (spotted in ruby-openai #{VERSION}): #{msg}\n\033[0m" end logger.error(e.response[:body])