24 lines
No EOL
992 B
Cheetah
24 lines
No EOL
992 B
Cheetah
# API key, also it is possible to define OPENAI_API_KEY env.
|
|
OPENAI_API_KEY={{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "OPENAI_API_KEY")) }}{{ includeTemplate "secrets/OPENAI_API_KEY" | decrypt | trim }}{{ else }}{{ env "OPENAI_API_KEY" }}{{ end }}
|
|
# OpenAI host, useful if you would like to use proxy.
|
|
OPENAI_API_HOST=https://api.openai.com
|
|
# Max amount of cached message per chat session.
|
|
CHAT_CACHE_LENGTH=100
|
|
# Chat cache folder.
|
|
CHAT_CACHE_PATH=/tmp/shell_gpt/chat_cache
|
|
# Request cache length (amount).
|
|
CACHE_LENGTH=100
|
|
# Request cache folder.
|
|
CACHE_PATH=/tmp/shell_gpt/cache
|
|
# Request timeout in seconds.
|
|
REQUEST_TIMEOUT=60
|
|
# Default OpenAI model to use.
|
|
DEFAULT_MODEL=gpt-3.5-turbo
|
|
# Default color for OpenAI completions.
|
|
DEFAULT_COLOR=magenta
|
|
# Force use system role messages (not recommended).
|
|
SYSTEM_ROLES=false
|
|
# When in --shell mode, default to "Y" for no input.
|
|
DEFAULT_EXECUTE_SHELL_CMD=false
|
|
# Disable streaming of responses
|
|
DISABLE_STREAMING=false |