Class: OpenAI::Choice
- Inherits:
-
Struct
- Object
- Struct
- OpenAI::Choice
- Defined in:
- lib/openai/choice.rb
Instance Attribute Summary collapse
-
#finish_reason ⇒ Object
Returns the value of attribute finish_reason.
-
#index ⇒ Object
Returns the value of attribute index.
-
#logprobs ⇒ Object
Returns the value of attribute logprobs.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Attribute Details
#finish_reason ⇒ Object
Returns the value of attribute finish_reason
2 3 4 |
# File 'lib/openai/choice.rb', line 2 def finish_reason @finish_reason end |
#index ⇒ Object
Returns the value of attribute index
2 3 4 |
# File 'lib/openai/choice.rb', line 2 def index @index end |
#logprobs ⇒ Object
Returns the value of attribute logprobs
2 3 4 |
# File 'lib/openai/choice.rb', line 2 def logprobs @logprobs end |
#text ⇒ Object
Returns the value of attribute text
2 3 4 |
# File 'lib/openai/choice.rb', line 2 def text @text end |