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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user