Class: RubyCanUseLLM::Providers::Base
- Inherits:
-
Object
- Object
- RubyCanUseLLM::Providers::Base
show all
- Defined in:
- lib/rubycanusellm/providers/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
6
7
8
|
# File 'lib/rubycanusellm/providers/base.rb', line 6
def initialize(config)
@config = config
end
|
Instance Method Details
#chat(messages, **options) ⇒ Object
10
11
12
|
# File 'lib/rubycanusellm/providers/base.rb', line 10
def chat(messages, **options)
raise NotImplementedError, "#{self.class} must implement #chat"
end
|
#embed(text, **options) ⇒ Object
14
15
16
|
# File 'lib/rubycanusellm/providers/base.rb', line 14
def embed(text, **options)
raise NotImplementedError, "#{self.class} must implement #embed"
end
|