Skip to main content

estimate_total_tokens

Function estimate_total_tokens 

Source
pub fn estimate_total_tokens(messages: &[Message]) -> u32
Expand description

Estimate total tokens for a message list.