struct

OpenRouter::Choice

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

delta

For streaming completions

Source
finish_reason
Source
message

For chat completions (non-streaming)

Source
message=(message : Message | Nil)

For chat completions (non-streaming)

Source
text

For non-chat completions (text generation)

Source