OpenRouter TypeScript SDK - v1.0.6
GitHub
Examples
Preparing search index...
BatchResult
Interface BatchResult
Result of a request in a batch
interface
BatchResult
{
success
:
boolean
;
response
?:
ChatCompletionResponse
;
error
?:
{
message
:
string
;
status
?:
number
;
code
?:
string
|
number
}
;
requestIndex
:
number
;
params
:
ChatCompletionParams
;
}
Index
Properties
success
response?
error?
request
Index
params
Properties
success
success
:
boolean
Optional
response
response
?:
ChatCompletionResponse
Optional
error
error
?:
{
message
:
string
;
status
?:
number
;
code
?:
string
|
number
}
request
Index
requestIndex
:
number
params
params
:
ChatCompletionParams
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
success
response
error
request
Index
params
GitHub
Examples
OpenRouter TypeScript SDK - v1.0.6
Loading...
Result of a request in a batch