shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

Runtime configuration file

Open TheR1D opened this issue 2 years ago • 0 comments

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.

TheR1D avatar Mar 05 '23 16:03 TheR1D