Class: Roseflow::OpenAI::CompletionResponse

Inherits:
TextApiResponse show all
Defined in:
lib/roseflow/openai/response.rb

Instance Method Summary collapse

Methods inherited from TextApiResponse

#body, #choices

Methods inherited from ApiResponse

#body, #initialize, #status, #success?

Constructor Details

This class inherits a constructor from Roseflow::OpenAI::ApiResponse

Instance Method Details

#responseObject



46
47
48
# File 'lib/roseflow/openai/response.rb', line 46

def response
  choices.first
end

#responsesObject



50
51
52
# File 'lib/roseflow/openai/response.rb', line 50

def responses
  choices
end