Skip to main content

extract_usage

Function extract_usage 

Source
pub fn extract_usage(value: &Value) -> LlmUsage
Expand description

Extracts token usage from an OpenAI-compatible API response JSON.