sam.config
The configuration for your bot.
Config values are loaded from environment variables, and have defaults if not set.
REDIS_URL
General The URL of the Redis database server.
RANDOM_RUN_RATIO
How often the bot randomly responds in a group channel.
OPEN_WEBUI_URL
OpenWebUI The OpenWebUI domain URL, without /api at the end.
OPEN_WEBUI_API_KEY
The OpenWebUI API key, used for authentication.
OPEN_WEBUI_MODEL
The OpenWebUI model to use for chat completions.
OPENAI_API_KEY
OpenAI The OpenAI API key.
TTS_VOICE
The OpenAI model used for text-to-speech.
TTS_MODEL
The OpenAI model used for speech-to-text.
STT_PROMPT
Specific words or acronyms for speech-to-text.
GROUNDHOG_DAY_MODE
The bot will start a fresh thread each day, forgetting the previous day's context.
SLACK_BOT_TOKEN
Slack
The Slack bot token, prefixed with xoxb-
.
SLACK_APP_TOKEN
The Slack app token, prefixed with xapp-
.
SENTRY_DSN
Sentry The Sentry DSN for Sentry based error reporting.