Only feed ai summarizer title and content

This commit is contained in:
Tyler Hallada 2024-09-08 20:42:21 -04:00
parent 236f4a5ef1
commit 64f4f40231

View File

@ -146,10 +146,7 @@ async fn generate_and_update_entry(
console_log!("skipping entry due to empty content or short content length");
return Ok(());
}
let input = format!(
"Title: {}\nURL: {}\nContent: {}",
&entry.title, &entry.url, &entry.content
);
let input = format!("{}\n\n{}", &entry.title, &entry.content);
// Generate summary
if let Ok(summary) = request_ai_summarization(