Class: Sage::Configuration
- Inherits:
-
Object
- Object
- Sage::Configuration
- Defined in:
- lib/sage.rb
Instance Attribute Summary collapse
-
#anthropic_api_key ⇒ Object
Returns the value of attribute anthropic_api_key.
-
#anthropic_model ⇒ Object
Returns the value of attribute anthropic_model.
-
#open_ai_key ⇒ Object
Returns the value of attribute open_ai_key.
-
#open_ai_model ⇒ Object
Returns the value of attribute open_ai_model.
-
#provider ⇒ Object
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 22 23 |
# File 'lib/sage.rb', line 19 def initialize @provider = :anthropic @anthropic_model = "claude-3-opus-20240229" @open_ai_model = "gpt-4" end |
Instance Attribute Details
#anthropic_api_key ⇒ Object
Returns the value of attribute anthropic_api_key.
17 18 19 |
# File 'lib/sage.rb', line 17 def anthropic_api_key @anthropic_api_key end |
#anthropic_model ⇒ Object
Returns the value of attribute anthropic_model.
17 18 19 |
# File 'lib/sage.rb', line 17 def anthropic_model @anthropic_model end |
#open_ai_key ⇒ Object
Returns the value of attribute open_ai_key.
17 18 19 |
# File 'lib/sage.rb', line 17 def open_ai_key @open_ai_key end |
#open_ai_model ⇒ Object
Returns the value of attribute open_ai_model.
17 18 19 |
# File 'lib/sage.rb', line 17 def open_ai_model @open_ai_model end |
#provider ⇒ Object
Returns the value of attribute provider.
17 18 19 |
# File 'lib/sage.rb', line 17 def provider @provider end |