Class: Nanobot::Config::ProviderConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::ProviderConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Credentials and endpoint for a single LLM provider
Instance Attribute Summary collapse
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#extra_headers ⇒ Object
Returns the value of attribute extra_headers.
Instance Method Summary collapse
-
#initialize(api_key: nil, api_base: nil, extra_headers: nil) ⇒ ProviderConfig
constructor
A new instance of ProviderConfig.
Constructor Details
#initialize(api_key: nil, api_base: nil, extra_headers: nil) ⇒ ProviderConfig
Returns a new instance of ProviderConfig.
12 13 14 |
# File 'lib/nanobot/config/schema.rb', line 12 def initialize(api_key: nil, api_base: nil, extra_headers: nil) super end |
Instance Attribute Details
#api_base ⇒ Object
Returns the value of attribute api_base
8 9 10 |
# File 'lib/nanobot/config/schema.rb', line 8 def api_base @api_base end |
#api_key ⇒ Object
Returns the value of attribute api_key
8 9 10 |
# File 'lib/nanobot/config/schema.rb', line 8 def api_key @api_key end |
#extra_headers ⇒ Object
Returns the value of attribute extra_headers
8 9 10 |
# File 'lib/nanobot/config/schema.rb', line 8 def extra_headers @extra_headers end |