Class: LlmMemory::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

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_idObject

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_urlObject

Returns the value of attribute redis_url.



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

def redis_url
  @redis_url
end