diff --git a/lib/gold_miner/blog_post/open_ai_writer.rb b/lib/gold_miner/blog_post/open_ai_writer.rb index cf37ee2..51946d5 100644 --- a/lib/gold_miner/blog_post/open_ai_writer.rb +++ b/lib/gold_miner/blog_post/open_ai_writer.rb @@ -30,7 +30,8 @@ def give_title_to(gold_nugget) def summarize(gold_nugget) summary = ask_openai <<~PROMPT - Summarize the following markdown message without removing the author's blog link. Return the summary as markdown. + Summarize the following markdown message without removing the author's blog link. + Keep code examples and links, if any. Return the summary as markdown. Message: #{gold_nugget.as_conversation} @@ -48,7 +49,7 @@ def summarize(gold_nugget) def ask_openai(prompt) response = @openai_client.chat( parameters: { - model: "gpt-3.5-turbo", + model: "gpt-4o-mini", messages: [{role: "user", content: prompt.strip}], temperature: 0 }