diff --git a/src/providers/helpers.rs b/src/providers/helpers.rs index 2bedaae4..54dc208b 100644 --- a/src/providers/helpers.rs +++ b/src/providers/helpers.rs @@ -72,7 +72,7 @@ pub async fn messages_to_openai_json(messages: &[UnifiedMessage]) -> Result = tool_calls.iter().map(|tc| { @@ -84,7 +84,7 @@ pub async fn messages_to_openai_json(messages: &[UnifiedMessage]) -> Result = tool_calls.iter().map(|tc| { @@ -177,7 +177,7 @@ pub async fn messages_to_openai_json_text_only( }).collect(); if parts.is_empty() { - msg["content"] = serde_json::Value::Null; + msg["content"] = serde_json::json!(""); } else { msg["content"] = serde_json::json!(parts); }