fix(openai): use safely_parse_json for streaming tool arguments (#8208)

Signed-off-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-03-30 11:09:03 -04:00
committed by GitHub
parent 764760edfb
commit a7f5c6c112
+1 -1
View File
@@ -750,7 +750,7 @@ where
let parsed = if arguments.is_empty() {
Ok(json!({}))
} else {
serde_json::from_str::<Value>(arguments)
safely_parse_json(arguments)
};
let metadata = if let Some(sig) = &last_signature {