class ChatGPT::Config
Defined in:
chatgpt/config.cr
Constant Summary
-
BASE_DIR =
if ENV.has_key?("CHATGPT_CLI_CONFIG")
ENV["CHATGPT_CLI_CONFIG"]
else
"#{ENV["HOME"]}/.config/chatgpt-cli"
end
-
CONFIG_FILE =
"#{BASE_DIR}/config.json"
-
DEFAULT_CONFIG =
{{ (`cat /srv/crystaldoc.info/gitlab-kojix2-chatgpt-cli-v0.2.1/src/chatgpt/../../config.json`).chomp.stringify }}
-
DEFAULT_PROMPTS =
{{ (`cat /srv/crystaldoc.info/gitlab-kojix2-chatgpt-cli-v0.2.1/src/chatgpt/../../awesome-chatgpt-prompts/prompts.csv`).chomp.stringify }}
-
HISTORY_FILE =
"#{ENV["HOME"]}/.chatgpt_history"
-
POST_DATA_FILE =
"#{BASE_DIR}/post_data.json"
-
PROMPTS_FILE =
"#{BASE_DIR}/prompts.csv"
Constructors
Class Method Summary
Instance Method Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def
pattern(id : Symbol)
#
def
substitute_patterns
#