Skip to main content

snake_to_camel

Function snake_to_camel 

Source
fn snake_to_camel(s: &str) -> String
Expand description

Convert a snake_case string to camelCase.

Inverse of camel_to_snake; used to normalise OpenAI-format body keys (top_p, max_tokens, etc.) into the camelCase form expected by InferenceConfig’s serde impl before deserialisation.