(mut raw: Value)
| 493 | } |
| 494 | |
| 495 | fn with_openai_provider(mut raw: Value) -> Value { |
| 496 | if let Some(obj) = raw.as_object_mut() { |
| 497 | obj.entry("provider".to_string()) |
| 498 | .or_insert_with(|| Value::String("openai".to_string())); |
| 499 | } |
| 500 | raw |
| 501 | } |
| 502 | |
| 503 | fn normalize_stop_raw(mut raw: Value) -> Value { |
| 504 | let stop_hook_active = raw.get("stop_hook_active").and_then(Value::as_bool); |