pub fn reconstruct(
payload: &Value,
transformed: &[(usize, Vec<u8>, String)],
) -> Result<Value>Expand description
Reconstruct an OpenAI payload with transformed image data.
Takes the original payload and a list of (global_index, new_data, new_mime) tuples. Images with empty data are dropped from the payload.