Class: Openai::Client::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/openai/client/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
# File 'lib/openai/client/configuration.rb', line 8

def initialize
  @openai_url      = 'https://api.openai.com/v1'
  @access_token    = nil
  @organization_id = nil
  @organization_id = nil
  @logger          = Logger.new($stdout)
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



6
7
8
# File 'lib/openai/client/configuration.rb', line 6

def access_token
  @access_token
end

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/openai/client/configuration.rb', line 6

def logger
  @logger
end

#openai_urlObject

Returns the value of attribute openai_url.



6
7
8
# File 'lib/openai/client/configuration.rb', line 6

def openai_url
  @openai_url
end

#organization_idObject

Returns the value of attribute organization_id.



6
7
8
# File 'lib/openai/client/configuration.rb', line 6

def organization_id
  @organization_id
end