Pass image as additional Insight context

This commit is contained in:
Cameron
2026-01-10 11:30:01 -05:00
parent 084994e0b5
commit b2cc617bc2
9 changed files with 295 additions and 56 deletions

View File

@@ -62,7 +62,10 @@ pub fn strip_summary_boilerplate(summary: &str) -> String {
if text.to_lowercase().starts_with(&phrase.to_lowercase()) {
text = text[phrase.len()..].trim_start().to_string();
// Remove leading punctuation/articles after stripping phrase
text = text.trim_start_matches(|c| c == ',' || c == ':' || c == '-').trim_start().to_string();
text = text
.trim_start_matches(|c| c == ',' || c == ':' || c == '-')
.trim_start()
.to_string();
break;
}
}