estimate_tokens

Function estimate_tokens 

Source
pub fn estimate_tokens(text: &str) -> usize
Expand description

Estimate tokens from text using a stable lightweight heuristic.