Documentation
Preparing search index...
@quatrain/ai-openai
OpenAiChatResponse
Interface OpenAiChatResponse
API response structure from an OpenAI-compatible /chat/completions endpoint.
interface
OpenAiChatResponse
{
choices
:
OpenAiChatChoice
[]
;
created
:
number
;
id
:
string
;
model
:
string
;
object
:
string
;
usage
?:
{
completion_tokens
:
number
;
prompt_tokens
:
number
;
total_tokens
:
number
;
}
;
}
Index
Properties
choices
created
id
model
object
usage?
Properties
choices
choices
:
OpenAiChatChoice
[]
created
created
:
number
id
id
:
string
model
model
:
string
object
object
:
string
Optional
usage
usage
?:
{
completion_tokens
:
number
;
prompt_tokens
:
number
;
total_tokens
:
number
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
choices
created
id
model
object
usage
Documentation
Loading...
API response structure from an OpenAI-compatible /chat/completions endpoint.