mirror of
https://github.com/LukeHagar/log10go.git
synced 2025-12-06 12:37:49 +00:00
35 lines
809 B
Go
35 lines
809 B
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
// CompletionUsage - Usage statistics for the completion request.
|
|
type CompletionUsage struct {
|
|
// Number of tokens in the generated completion.
|
|
CompletionTokens int64 `json:"completion_tokens"`
|
|
// Number of tokens in the prompt.
|
|
PromptTokens int64 `json:"prompt_tokens"`
|
|
// Total number of tokens used in the request (prompt + completion).
|
|
TotalTokens int64 `json:"total_tokens"`
|
|
}
|
|
|
|
func (o *CompletionUsage) GetCompletionTokens() int64 {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.CompletionTokens
|
|
}
|
|
|
|
func (o *CompletionUsage) GetPromptTokens() int64 {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.PromptTokens
|
|
}
|
|
|
|
func (o *CompletionUsage) GetTotalTokens() int64 {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.TotalTokens
|
|
}
|