diff --git a/render.rb b/render.rb index d7bd408b3..515dbf91b 100644 --- a/render.rb +++ b/render.rb @@ -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