From 7f2401c43401bb8779c7049e56f8b5d874888dfc Mon Sep 17 00:00:00 2001 From: Daniel Kastl Date: Fri, 12 May 2023 14:06:29 +0900 Subject: [PATCH 1/2] removes debug output Signed-off-by: Daniel Kastl --- lib/redmine_gtt_assistant/openai.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/redmine_gtt_assistant/openai.rb b/lib/redmine_gtt_assistant/openai.rb index 358f544..92ef9b1 100644 --- a/lib/redmine_gtt_assistant/openai.rb +++ b/lib/redmine_gtt_assistant/openai.rb @@ -39,7 +39,6 @@ def self.chat(params) { role: "user", content: params[:prompt] }, ], }) - puts response["usage"] return response.dig("choices", 0, "message", "content").to_s rescue StandardError => e Rails.logger.error("Error submitting a request to OpenAI: #{e}") From b60beb6e29cdf4919953dc0e2ad58f8a36312f4e Mon Sep 17 00:00:00 2001 From: Daniel Kastl Date: Wed, 5 Jun 2024 16:04:56 +0900 Subject: [PATCH 2/2] Create de.yml --- config/locales/de.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/locales/de.yml diff --git a/config/locales/de.yml b/config/locales/de.yml new file mode 100644 index 0000000..346523b --- /dev/null +++ b/config/locales/de.yml @@ -0,0 +1 @@ +de: