Skip to main content

embeddings_usage

Function embeddings_usage 

Source
pub fn embeddings_usage(response: &Value) -> ModelUsage
Expand description

Usage from an OpenAI-compatible embeddings response. Embeddings generate no completion, so only the prompt is billed: whatever the provider reports as output is ignored rather than priced.