Pass image as additional Insight context
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user