Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
djdefi committed Dec 18, 2024
1 parent 3bbf5e8 commit 6e22aa9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions render.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def summarize_news(feeds)
}.to_json
)
parsed_response = JSON.parse(response.body)

# Log the entire response for debugging
puts "API Response: #{response.body}"

if parsed_response["choices"] && !parsed_response["choices"].empty?
summary = parsed_response["choices"].first["message"]["content"]
else
Expand Down

0 comments on commit 6e22aa9

Please sign in to comment.