2023-04-14 19:21:04 -06:00
|
|
|
# Copy this file to .env and fill in the values you wish to change. Most already
|
|
|
|
# have sensible defaults. See config.ts for more details.
|
2023-04-08 05:02:59 -06:00
|
|
|
|
2023-04-08 17:32:49 -06:00
|
|
|
# PORT=7860
|
2023-05-15 15:47:30 -06:00
|
|
|
# SERVER_TITLE=Coom Tunnel
|
2023-04-10 04:39:13 -06:00
|
|
|
# MODEL_RATE_LIMIT=4
|
2023-06-07 18:58:57 -06:00
|
|
|
# MAX_OUTPUT_TOKENS_OPENAI=300
|
|
|
|
# MAX_OUTPUT_TOKENS_ANTHROPIC=900
|
2023-09-02 14:09:11 -06:00
|
|
|
# SHOW_TOKEN_COSTS=true
|
2023-04-08 17:32:49 -06:00
|
|
|
# LOG_LEVEL=info
|
2023-04-08 20:49:06 -06:00
|
|
|
# REJECT_DISALLOWED=false
|
2023-04-08 21:00:45 -06:00
|
|
|
# REJECT_MESSAGE="This content violates /aicg/'s acceptable use policy."
|
2023-05-15 15:47:30 -06:00
|
|
|
# CHECK_KEYS=true
|
2023-08-29 16:56:54 -06:00
|
|
|
# ALLOWED_MODEL_FAMILIES=claude,turbo,gpt4,gpt4-32k
|
2023-05-22 15:08:20 -06:00
|
|
|
# BLOCKED_ORIGINS=reddit.com,9gag.com
|
|
|
|
# BLOCK_MESSAGE="You must be over the age of majority in your country to use this service."
|
|
|
|
# BLOCK_REDIRECT="https://roblox.com/"
|
2023-04-14 19:21:04 -06:00
|
|
|
|
|
|
|
# Note: CHECK_KEYS is disabled by default in local development mode, but enabled
|
|
|
|
# by default in production mode.
|
|
|
|
|
2023-08-28 13:33:14 -06:00
|
|
|
# Optional settings for user management, access control, and quota enforcement.
|
|
|
|
# See `docs/user-management.md` to learn how to use these.
|
2023-08-28 13:51:28 -06:00
|
|
|
# See `docs/user-quotas.md` to learn how to use quotas.
|
2023-05-13 22:26:08 -06:00
|
|
|
# GATEKEEPER=none
|
2023-05-14 13:30:32 -06:00
|
|
|
# GATEKEEPER_STORE=memory
|
|
|
|
# MAX_IPS_PER_USER=20
|
2023-08-28 13:33:14 -06:00
|
|
|
# TOKEN_QUOTA_TURBO=0
|
|
|
|
# TOKEN_QUOTA_GPT4=0
|
|
|
|
# TOKEN_QUOTA_CLAUDE=0
|
2023-09-02 17:49:14 -06:00
|
|
|
# QUOTA_REFRESH_PERIOD=daily
|
|
|
|
# ALLOW_NICKNAME_CHANGES=true
|
2023-05-13 22:26:08 -06:00
|
|
|
|
|
|
|
# Optional settings for prompt logging. See docs/logging-sheets.md.
|
2023-04-14 19:21:04 -06:00
|
|
|
# PROMPT_LOGGING=false
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2023-08-09 17:28:45 -06:00
|
|
|
# The values below are secret -- make sure they are set securely. Do NOT set
|
|
|
|
# them in the .env file of a public repository.
|
2023-05-15 15:47:30 -06:00
|
|
|
# For Huggingface, set them via the Secrets section in your Space's config UI.
|
|
|
|
# For Render, create a "secret file" called .env using the Environment tab.
|
2023-04-14 19:21:04 -06:00
|
|
|
|
|
|
|
# You can add multiple keys by separating them with a comma.
|
|
|
|
OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
2023-05-29 21:13:17 -06:00
|
|
|
ANTHROPIC_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
2023-04-14 19:21:04 -06:00
|
|
|
|
2023-05-13 22:26:08 -06:00
|
|
|
# You can require a Bearer token for requests when using proxy_token gatekeeper.
|
2023-04-14 19:21:04 -06:00
|
|
|
# PROXY_KEY=your-secret-key
|
|
|
|
|
2023-05-13 22:26:08 -06:00
|
|
|
# You can set an admin key for user management when using user_token gatekeeper.
|
|
|
|
# ADMIN_KEY=your-very-secret-key
|
|
|
|
|
2023-08-09 17:28:45 -06:00
|
|
|
# These are used to persist user data to Firebase across restarts.
|
2023-05-13 22:26:08 -06:00
|
|
|
# FIREBASE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
# FIREBASE_RTDB_URL=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.firebaseio.com
|
|
|
|
|
2023-08-09 17:28:45 -06:00
|
|
|
# These are used to log prompts to Google Sheets.
|
2023-04-14 19:21:04 -06:00
|
|
|
# GOOGLE_SHEETS_SPREADSHEET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
# GOOGLE_SHEETS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|