Only feed ai summarizer title and content
This commit is contained in:
parent
236f4a5ef1
commit
64f4f40231
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user