@@ -85,7 +85,7 @@ pub struct FunctionCall {
85
85
}
86
86
87
87
/// Usage statistics for the completion request.
88
- #[ derive( Debug , Deserialize , Serialize , Clone , PartialEq ) ]
88
+ #[ derive( Debug , Deserialize , Serialize , Clone , PartialEq , Default ) ]
89
89
pub struct CompletionUsage {
90
90
/// Number of tokens in the prompt.
91
91
pub prompt_tokens : u32 ,
@@ -100,7 +100,7 @@ pub struct CompletionUsage {
100
100
}
101
101
102
102
/// Breakdown of tokens used in a completion.
103
- #[ derive( Debug , Deserialize , Serialize , Clone , PartialEq ) ]
103
+ #[ derive( Debug , Deserialize , Serialize , Clone , PartialEq , Default ) ]
104
104
pub struct PromptTokensDetails {
105
105
/// Audio input tokens present in the prompt.
106
106
pub audio_tokens : Option < u32 > ,
@@ -109,7 +109,7 @@ pub struct PromptTokensDetails {
109
109
}
110
110
111
111
/// Breakdown of tokens used in a completion.
112
- #[ derive( Debug , Deserialize , Serialize , Clone , PartialEq ) ]
112
+ #[ derive( Debug , Deserialize , Serialize , Clone , PartialEq , Default ) ]
113
113
pub struct CompletionTokensDetails {
114
114
pub accepted_prediction_tokens : Option < u32 > ,
115
115
/// Audio input tokens generated by the model.
0 commit comments