Class: LlmMemory::Configuration
- Inherits:
-
Object
- Object
- LlmMemory::Configuration
- Defined in:
- lib/llm_memory/configuration.rb
Instance Attribute Summary collapse
-
#openai_access_token ⇒ Object
Returns the value of attribute openai_access_token.
-
#openai_organization_id ⇒ Object
Returns the value of attribute openai_organization_id.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/llm_memory/configuration.rb', line 5 def initialize @openai_access_token = ENV["OPENAI_ACCESS_TOKEN"] @openai_organization_id = nil @redis_url = ENV["REDISCLOUD_URL"] || "redis://localhost:6379" end |
Instance Attribute Details
#openai_access_token ⇒ Object
Returns the value of attribute openai_access_token.
3 4 5 |
# File 'lib/llm_memory/configuration.rb', line 3 def openai_access_token @openai_access_token end |
#openai_organization_id ⇒ Object
Returns the value of attribute openai_organization_id.
3 4 5 |
# File 'lib/llm_memory/configuration.rb', line 3 def openai_organization_id @openai_organization_id end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
3 4 5 |
# File 'lib/llm_memory/configuration.rb', line 3 def redis_url @redis_url end |