mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-24 22:53:52 +02:00
11 lines
308 B
Go
11 lines
308 B
Go
package openai
|
|
|
|
// common.go defines common types used throughout the OpenAI API.
|
|
|
|
// Usage Represents the total token usage per request to OpenAI.
|
|
type Usage struct {
|
|
PromptTokens int `json:"prompt_tokens"`
|
|
CompletionTokens int `json:"completion_tokens"`
|
|
TotalTokens int `json:"total_tokens"`
|
|
}
|