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: diff --git a/lib/redmine_gtt_assistant/openai.rb b/lib/redmine_gtt_assistant/openai.rb index ea2ab30..ed62164 100644 --- a/lib/redmine_gtt_assistant/openai.rb +++ b/lib/redmine_gtt_assistant/openai.rb @@ -40,7 +40,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}")