Class: Roseflow::OpenAI::ChatResponse

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

Overview

TextApiResponse

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



40
41
42
# File 'lib/roseflow/openai/response.rb', line 40

def response
  choices.first
end