Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openrouter
v0.2.0
OpenRouter
ApiError
BadGatewayError
BadRequestError
Choice
Client
CompletionRequest
Error
ForbiddenError
FunctionDescription
Message
Model
NonChatChoice
NonStreamingChoice
PaymentRequiredError
RequestTimeoutError
Response
ResponseObject
Role
ServiceUnavailableError
StreamingChoice
Tool
ToolCall
TooManyRequestsError
UnauthorizedError
Usage
Generated using Crystal 1.14.0
2025-01-02 10:41:30 UTC
abstract struct
OpenRouter::
Choice
OpenRouter::Choice
Struct
Value
Object
Direct Known Subclasses
OpenRouter::NonChatChoice
OpenRouter::NonStreamingChoice
OpenRouter::StreamingChoice
Defined in:
openrouter/types/response.cr
Constructors
.new
Instance Method Summary
#finish_reason
: String | Nil
#initialize
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
finish_reason
: String | Nil
#
[
View source
]
def
initialize
#
[
View source
]