Class: Rubagent::Llms::OpenAI
- Defined in:
- lib/rubagent/llms/open_ai.rb
Overview
Models with OpenAI like api
Instance Attribute Summary
Attributes inherited from BaseLlm
#api_key, #context_length, #model, #url
Instance Method Summary collapse
-
#initialize(model:, url:, api_key: nil) ⇒ OpenAI
constructor
A new instance of OpenAI.
Methods inherited from BaseLlm
Constructor Details
#initialize(model:, url:, api_key: nil) ⇒ OpenAI
Returns a new instance of OpenAI.
7 8 9 10 11 12 |
# File 'lib/rubagent/llms/open_ai.rb', line 7 def initialize(model:, url:, api_key: nil) @model = model @api_key = api_key @url = url super end |