lib/lhj/helper/chat_gpt_config.rb in lhj-tools-0.2.36 vs lib/lhj/helper/chat_gpt_config.rb in lhj-tools-0.2.37

- old
+ new

@@ -13,9 +13,13 @@ def self.config @yaml ||= YAML.load_file(config_file) end + def self.clean + @yaml = nil + end + def self.api_key(idx) i = idx % config.length config[i]['api_key'] end