OpenRouterResponse
Defined in: backend/src/providers/openrouter.ts:73
Properties
Section titled “Properties”choices
Section titled “choices”choices:
object[]
Defined in: backend/src/providers/openrouter.ts:78
finish_reason
Section titled “finish_reason”finish_reason:
"stop"|"length"|"tool_calls"|"content_filter"|null
index:
number
message
Section titled “message”message:
OpenRouterMessage
created
Section titled “created”created:
number
Defined in: backend/src/providers/openrouter.ts:76
id:
string
Defined in: backend/src/providers/openrouter.ts:74
model:
string
Defined in: backend/src/providers/openrouter.ts:77
object
Section titled “object”object:
"chat.completion"
Defined in: backend/src/providers/openrouter.ts:75
usage?
Section titled “usage?”
optionalusage:object
Defined in: backend/src/providers/openrouter.ts:83
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