Class: Openai::Client::Configuration
- Inherits:
-
Object
- Object
- Openai::Client::Configuration
- Defined in:
- lib/openai/client/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#openai_url ⇒ Object
Returns the value of attribute openai_url.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_token ⇒ Object
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/openai/client/configuration.rb', line 6 def access_token @access_token end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/openai/client/configuration.rb', line 6 def logger @logger end |
#openai_url ⇒ Object
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_id ⇒ Object
Returns the value of attribute organization_id.
6 7 8 |
# File 'lib/openai/client/configuration.rb', line 6 def organization_id @organization_id end |