Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(web_chat): handle empty error responses in web errors

Steven Enamakel6e2d5f6a3aaf
diff --git a/src/openhuman/web_chat/web_errors_part_01.rs b/src/openhuman/web_chat/web_errors_part_01.rs
index b5374de04c..c264ea0c9b 100644
--- a/src/openhuman/web_chat/web_errors_part_01.rs
+++ b/src/openhuman/web_chat/web_errors_part_01.rs
@@ -157,8 +157,12 @@ pub(crate) fn extract_provider_error_detail(err: &str) -> Option<String> {
match esc {
'"' => out.push('"'),
'\\' => out.push('\\'),
+ '/' => out.push('/'),
'n' => out.push('\n'),
't' => out.push('\t'),
+ 'r' => out.push('\r'),
+ 'b' => out.push('\u{8}'),
+ 'f' => out.push('\u{c}'),
other => {
out.push('\\');
out.push(other);