Class: Blazer::Ai::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/blazer/ai/configuration.rb

Overview

Configuration for Blazer AI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_modelObject

Returns the value of attribute default_model.



3
4
5
# File 'lib/blazer/ai/configuration.rb', line 3

def default_model
  @default_model
end

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/blazer/ai/configuration.rb', line 3

def enabled
  @enabled
end

#max_prompt_lengthObject

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_lengthObject

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_minuteObject

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_ttlObject

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

#temperatureObject

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