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