Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openrouter
v0.1.1
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:38 UTC
struct
OpenRouter::
NonChatChoice
OpenRouter::NonChatChoice
OpenRouter::Choice
Struct
Value
Object
Defined in:
openrouter/types/response.cr
Constructors
.new
(json : JSON::Any)
Instance Method Summary
#text
: String
Instance methods inherited from struct
OpenRouter::Choice
finish_reason : String | Nil
finish_reason
,
initialize
initialize
Constructor methods inherited from struct
OpenRouter::Choice
new
new
Constructor Detail
def self.
new
(json : JSON::Any)
#
[
View source
]
Instance Method Detail
def
text
: String
#
[
View source
]