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"); console_log!("skipping entry due to empty content or short content length");
return Ok(()); return Ok(());
} }
let input = format!( let input = format!("{}\n\n{}", &entry.title, &entry.content);
"Title: {}\nURL: {}\nContent: {}",
&entry.title, &entry.url, &entry.content
);
// Generate summary // Generate summary
if let Ok(summary) = request_ai_summarization( if let Ok(summary) = request_ai_summarization(