tweaks to newline

This commit is contained in:
Dhanji Prasanna
2025-10-04 13:30:11 +10:00
parent cdfca615e3
commit f562301aa2
4 changed files with 42 additions and 45 deletions

View File

@@ -2219,7 +2219,7 @@ fn filter_json_tool_calls(content: &str) -> String {
}
// Check if this looks like the start of a JSON tool call (larger chunks)
let pattern = Regex::new(r#"\{\s*"tool"\s*:"#).unwrap();
let pattern = Regex::new(r#"\s*\{\s*"tool"\s*:"#).unwrap();
if pattern.is_match(trimmed) {
// This might be the start of a JSON tool call
// Enter suppression mode preemptively