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