Skip to main content

compress_string_field

Function compress_string_field 

Source
pub fn compress_string_field(
    obj: &mut Value,
    field: &str,
    aggressiveness: f64,
) -> bool
Expand description

Compress a JSON string field in place (e.g. OpenAI message content). Returns true if it was rewritten.