Module: OpenAI

Defined in:
lib/openai.rb,
lib/openai/http.rb,
lib/openai/files.rb,
lib/openai/client.rb,
lib/openai/images.rb,
lib/openai/models.rb,
lib/openai/version.rb,
lib/openai/finetunes.rb,
lib/openai/assistant/replyer.rb

Defined Under Namespace

Modules: Assistant, HTTP Classes: Client, Configuration, ConfigurationError, Error, Files, Finetunes, Images, Models

Constant Summary collapse

VERSION =
"4.1.1".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



44
45
46
# File 'lib/openai.rb', line 44

def self.configuration
  @configuration ||= OpenAI::Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



48
49
50
# File 'lib/openai.rb', line 48

def self.configure
  yield(configuration)
end