Skip to content

Commit

Permalink
prompt updates and render linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
djdefi committed Dec 18, 2024
1 parent 2b415bf commit 39a45c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion render.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def summarize_news(feeds)
"messages": [
{
"role": "system",
"content": "Provide a concise summary of a news brief, focusing on the most important details and key context."
"content": "Provide a concise summary of a news brief, focusing on the most important details and key context for the reader."
},
{
"role": "user",
Expand All @@ -102,6 +102,7 @@ def summarize_news(feeds)

if parsed_response["choices"] && !parsed_response["choices"].empty?
summary = parsed_response["choices"].first["message"]["content"]
summary = summary.gsub("\n", "<br/>") # Format for HTML line breaks
else
summary = "No summary available."
end
Expand Down

0 comments on commit 39a45c3

Please sign in to comment.