mirror of
https://github.com/LukeHagar/log10go.git
synced 2025-12-09 20:47:49 +00:00
Updating github integration
This commit is contained in:
34
models/components/completionusage.go
Normal file
34
models/components/completionusage.go
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user