pub struct UsageCompletionsResult {
pub object: String,
pub input_tokens: i64,
pub input_cached_tokens: Option<i64>,
pub output_tokens: i64,
pub input_audio_tokens: Option<i64>,
pub output_audio_tokens: Option<i64>,
pub num_model_requests: i64,
pub project_id: Option<String>,
pub user_id: Option<String>,
pub api_key_id: Option<String>,
pub model: Option<String>,
pub batch: Option<bool>,
}
Expand description
The aggregated completions usage details of the specific time bucket.
Fields§
§object: String
§input_tokens: i64
The aggregated number of text input tokens used, including cached tokens.
input_cached_tokens: Option<i64>
The aggregated number of text input tokens that has been cached from previous requests.
output_tokens: i64
The aggregated number of text output tokens used.
input_audio_tokens: Option<i64>
The aggregated number of audio input tokens used, including cached tokens.
output_audio_tokens: Option<i64>
The aggregated number of audio output tokens used.
num_model_requests: i64
The count of requests made to the model.
project_id: Option<String>
When group_by=project_id
, this field provides the project ID of the
grouped usage result.
user_id: Option<String>
When group_by=user_id
, this field provides the user ID of the grouped
usage result.
api_key_id: Option<String>
When group_by=api_key_id
, this field provides the API key ID of the
grouped usage result.
model: Option<String>
When group_by=model
, this field provides the model name of the grouped
usage result.
batch: Option<bool>
When group_by=batch
, this field tells whether the grouped usage result
is batch or not.
Trait Implementations§
Source§impl Clone for UsageCompletionsResult
impl Clone for UsageCompletionsResult
Source§fn clone(&self) -> UsageCompletionsResult
fn clone(&self) -> UsageCompletionsResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more