Class: Blazer::Ai::Configuration
- Inherits:
-
Object
- Object
- Blazer::Ai::Configuration
- Defined in:
- lib/blazer/ai/configuration.rb
Overview
Configuration for Blazer AI.
Instance Attribute Summary collapse
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#max_prompt_length ⇒ Object
Returns the value of attribute max_prompt_length.
-
#max_sql_length ⇒ Object
Returns the value of attribute max_sql_length.
-
#rate_limit_per_minute ⇒ Object
Returns the value of attribute rate_limit_per_minute.
-
#schema_cache_ttl ⇒ Object
Returns the value of attribute schema_cache_ttl.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
6 7 8 9 10 11 12 13 14 |
# File 'lib/blazer/ai/configuration.rb', line 6 def initialize @enabled = true @default_model = "gpt-4o-mini" @temperature = 0.2 @rate_limit_per_minute = 20 @schema_cache_ttl = 12.hours @max_prompt_length = 2000 @max_sql_length = 10_000 end |
Instance Attribute Details
#default_model ⇒ Object
Returns the value of attribute default_model.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def default_model @default_model end |
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def enabled @enabled end |
#max_prompt_length ⇒ Object
Returns the value of attribute max_prompt_length.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def max_prompt_length @max_prompt_length end |
#max_sql_length ⇒ Object
Returns the value of attribute max_sql_length.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def max_sql_length @max_sql_length end |
#rate_limit_per_minute ⇒ Object
Returns the value of attribute rate_limit_per_minute.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def rate_limit_per_minute @rate_limit_per_minute end |
#schema_cache_ttl ⇒ Object
Returns the value of attribute schema_cache_ttl.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def schema_cache_ttl @schema_cache_ttl end |
#temperature ⇒ Object
Returns the value of attribute temperature.
3 4 5 |
# File 'lib/blazer/ai/configuration.rb', line 3 def temperature @temperature end |
Instance Method Details
#enabled? ⇒ Boolean
16 17 18 |
# File 'lib/blazer/ai/configuration.rb', line 16 def enabled? @enabled end |