openai_struct/models/eval_run_per_model_usage.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct EvalRunPerModelUsage {
16 /// The number of tokens retrieved from cache.
17 #[serde(rename = "cached_tokens")]
18 pub cached_tokens: i32,
19 /// The number of completion tokens generated.
20 #[serde(rename = "completion_tokens")]
21 pub completion_tokens: i32,
22 /// The number of invocations.
23 #[serde(rename = "invocation_count")]
24 pub invocation_count: i32,
25 /// The name of the model.
26 #[serde(rename = "model_name")]
27 pub model_name: String,
28 /// The number of prompt tokens used.
29 #[serde(rename = "prompt_tokens")]
30 pub prompt_tokens: i32,
31 /// The total number of tokens used.
32 #[serde(rename = "total_tokens")]
33 pub total_tokens: i32,
34}