OpenAIResponse
Defined in: backend/src/providers/openai.ts:90
OpenAI Chat Completions API response.
Properties
Section titled “Properties”choices
Section titled “choices”choices:
object[]
Defined in: backend/src/providers/openai.ts:95
finish_reason
Section titled “finish_reason”finish_reason:
"stop"|"length"|"tool_calls"|"content_filter"|null
index:
number
message
Section titled “message”message:
OpenAIMessage
created
Section titled “created”created:
number
Defined in: backend/src/providers/openai.ts:93
id:
string
Defined in: backend/src/providers/openai.ts:91
model:
string
Defined in: backend/src/providers/openai.ts:94
object
Section titled “object”object:
"chat.completion"
Defined in: backend/src/providers/openai.ts:92
usage?
Section titled “usage?”
optionalusage:object
Defined in: backend/src/providers/openai.ts:100
completion_tokens
Section titled “completion_tokens”completion_tokens:
number
prompt_tokens
Section titled “prompt_tokens”prompt_tokens:
number
total_tokens
Section titled “total_tokens”total_tokens:
number