Skip to content

Commit

Permalink
Merge pull request #10 from gtt-project/next
Browse files Browse the repository at this point in the history
Brings main up-to-date
  • Loading branch information
dkastl authored Nov 19, 2024
2 parents f7aaba7 + b60beb6 commit c8b3841
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de:
1 change: 0 additions & 1 deletion lib/redmine_gtt_assistant/openai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit c8b3841

Please sign in to comment.