Class: LlmHub::Completion::Providers::Base Abstract
- Inherits:
-
Object
- Object
- LlmHub::Completion::Providers::Base
- Includes:
- LlmHub::Common::AbstractMethods
- Defined in:
- lib/llm_hub/completion/providers/base.rb
Overview
This class is abstract.
Subclass and override required methods to implement a provider
Base class for LLM completion providers
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(api_key) ⇒ Base
constructor
A new instance of Base.
Methods included from LlmHub::Common::AbstractMethods
Constructor Details
#initialize(api_key) ⇒ Base
Returns a new instance of Base.
13 14 15 |
# File 'lib/llm_hub/completion/providers/base.rb', line 13 def initialize(api_key) @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/llm_hub/completion/providers/base.rb', line 11 def api_key @api_key end |