Sha256: 7676aa453c9776f2fd9712f4c779c51c71dff6d282759f3b10a49888a7e40066
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.4 | lib/aia/configuration.rb |
aia-0.3.3 | lib/aia/configuration.rb |