shell_gpt
shell_gpt copied to clipboard
Runtime configuration file
Make a runtime config file with all constatns like API key, cache length, ...
#.sgptrc
# Max amount of message in each session.
MAX_CHAT_MESSAGES=50
# Request caching.
MAX_CACHE_LENGTH=200
# OpenAI API key.
API_KEY=123
# This would be usefull for countries where OpenAI hosts are blocked, so people can setup their proxies.
API_ENDPOINT=https://api.openai.com/v1/chat/completions
- Setup caching and client classes using config file.