toggle menu
openai-kotlin
common
switch theme
search in API
openai-core
/
com.aallam.openai.api.core
/
Usage
Usage
@
Serializable
data
class
Usage
(
val
promptTokens
:
Int
?
=
null
,
val
completionTokens
:
Int
?
=
null
,
val
totalTokens
:
Int
?
=
null
)
Members
Constructors
Usage
Link copied to clipboard
constructor
(
promptTokens
:
Int
?
=
null
,
completionTokens
:
Int
?
=
null
,
totalTokens
:
Int
?
=
null
)
Properties
completion
Tokens
Link copied to clipboard
@
SerialName
(
value
=
"completion_tokens"
)
val
completionTokens
:
Int
?
=
null
Count of completion tokens.
prompt
Tokens
Link copied to clipboard
@
SerialName
(
value
=
"prompt_tokens"
)
val
promptTokens
:
Int
?
=
null
Count of prompts tokens.
total
Tokens
Link copied to clipboard
@
SerialName
(
value
=
"total_tokens"
)
val
totalTokens
:
Int
?
=
null
Count of total tokens.