# frozen_string_literal: true require 'yaml' module Lhj # chat gpt Config class ChatGptConfig CONFIG_NAME = 'chat_gpt_config.yml' def self.config_file File.join(Lhj::Config.instance.home_dir, CONFIG_NAME) end def self.config @yaml ||= YAML.load_file(config_file) end def self.api_key(idx) i = idx % config.length config[i]['api_key'] end def self.org_id(idx) i = idx % config.length config[i]['org_id'] end end end