struct

Crig::Providers::DeepSeek::Usage

Inherits Crig::Completion::GetTokenUsage < JSON::Serializable < Struct < Value < Object

Constructors

new(completion_tokens : Int32 = 0, prompt_tokens : Int32 = 0, prompt_cache_hit_tokens : Int32 = 0, prompt_cache_miss_tokens : Int32 = 0, total_tokens : Int32 = 0, completion_tokens_details : CompletionTokensDetails | Nil = nil, prompt_tokens_details : PromptTokensDetails | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new_empty
Source

Instance methods

completion_tokens
Source
completion_tokens_details
Source
prompt_cache_hit_tokens
Source
prompt_cache_miss_tokens
Source
prompt_tokens
Source
prompt_tokens_details
Source
token_usage
Source
total_tokens
Source