Sha256: 85b1f3cf8a5b47bb1cfea6fb17a18648330635bf7fd5af17445e3bc134de9035
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
# lib/aia/configuration.rb HOME = Pathname.new(ENV['HOME']) PROMPTS_DIR = Pathname.new(ENV['PROMPTS_DIR'] || (HOME + ".prompts_dir")) AI_CLI_PROGRAM = "mods" EDITOR = ENV['EDITOR'] || 'edit' MY_NAME = "aia" MODS_MODEL = ENV['MODS_MODEL'] || 'gpt-4-1106-preview' OUTPUT = Pathname.pwd + "temp.md" PROMPT_LOG = PROMPTS_DIR + "_prompts.log" module AIA::Configuration def setup_configuration @prompt = nil PromptManager::Prompt.storage_adapter = PromptManager::Storage::FileSystemAdapter.config do |config| config.prompts_dir = PROMPTS_DIR config.prompt_extension = '.txt' config.params_extension = '.json' config.search_proc = nil # TODO: add the rgfzz script for search_proc end.new end # Get the additional CLI arguments intended for the # backend gen-AI processor. def extract_extra_options extra_index = @arguments.index('--') if extra_index.nil? @extra_options = [] else @extra_options = @arguments.slice!(extra_index..-1)[1..] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aia-0.3.0 | lib/aia/configuration.rb |
aia-0.0.5 | lib/aia/configuration.rb |