struct
OpenRouter::Response
- OpenRouter::Response
- Struct
- Value
- Object
Overview
Represents a response from
Included Modules
- JSON::Serializable
Defined in:
openrouter/types/response.crConstructors
Class Method Summary
Instance Method Summary
- #choices : Array(Choice)
- #created : Int32
- #id : String | Nil
- #model : String
-
#usage : Usage | Nil
Usage data is always returned for non-streaming.
Constructor Detail
Class Method Detail
Instance Method Detail
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.