Class: OpenAI::Choice

Inherits:
Struct
  • Object
show all
Defined in:
lib/openai/choice.rb

Instance Attribute Summary collapse

Instance Attribute Details

#finish_reasonObject

Returns the value of attribute finish_reason

Returns:

  • (Object)

    the current value of finish_reason



2
3
4
# File 'lib/openai/choice.rb', line 2

def finish_reason
  @finish_reason
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



2
3
4
# File 'lib/openai/choice.rb', line 2

def index
  @index
end

#logprobsObject

Returns the value of attribute logprobs

Returns:

  • (Object)

    the current value of logprobs



2
3
4
# File 'lib/openai/choice.rb', line 2

def logprobs
  @logprobs
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



2
3
4
# File 'lib/openai/choice.rb', line 2

def text
  @text
end