Skip to main content

ChatUsage

Type Alias ChatUsage 

Source
pub type ChatUsage = Usage;
Expand description

A legacy type alias for Usage.

Aliased Type§

pub struct ChatUsage {
    pub prompt_tokens: u32,
    pub completion_tokens: u32,
    pub total_tokens: u32,
}

Fields§

§prompt_tokens: u32

The number of tokens in the prompt.

§completion_tokens: u32

The number of tokens in the generated completion.

§total_tokens: u32

The total number of tokens used in the request (prompt + completion).