OpenRouter::Response
Inherits JSON::Serializable < Struct < Value < Object
Represents a response from
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
Instance methods
choices
Sourcecreated
Sourceid
Sourcemodel
Sourceusage
Usage data is always returned for non-streaming. When streaming, you will get one usage object at the end accompanied by an empty choices array.