struct
AI::OpenAI::OpenAIChatResponseChoice
- AI::OpenAI::OpenAIChatResponseChoice
- Struct
- Value
- Object
Overview
Choice in response.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/chat/openai_chat_api.crConstructors
- .new(message : OpenAIChatResponseMessage, index : Int32, finish_reason : String | Nil = nil, logprobs : OpenAIChatLogprobs | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #finish_reason : String | Nil
- #index : Int32
- #logprobs : OpenAIChatLogprobs | Nil
- #message : OpenAIChatResponseMessage
Constructor Detail
def self.new(message : OpenAIChatResponseMessage, index : Int32, finish_reason : String | Nil = nil, logprobs : OpenAIChatLogprobs | Nil = nil)
#