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-04-10 04:39:13 -06:00
|
|
|
# MODEL_RATE_LIMIT=4
|
|
|
|
# MAX_OUTPUT_TOKENS=300
|
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-04-10 04:39:13 -06:00
|
|
|
# CHECK_KEYS=false
|
2023-05-09 17:11:57 -06:00
|
|
|
# QUOTA_DISPLAY_MODE=full
|
|
|
|
# QUEUE_MODE=fair
|
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-05-13 22:26:08 -06:00
|
|
|
# Optional settings for user management. See docs/user-management.md.
|
|
|
|
# GATEKEEPER=none
|
2023-05-14 13:30:32 -06:00
|
|
|
# GATEKEEPER_STORE=memory
|
|
|
|
# MAX_IPS_PER_USER=20
|
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
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# !!! EVERYTHING BELOW IS FOR LOCAL DEVELOPMENT ONLY !!!
|
|
|
|
# If you are deploying this to Huggingface Spaces, do not set any keys here as
|
|
|
|
# the .env file is public and your keys will be exposed.
|
|
|
|
# Sensitive keys should be set in the Secrets UI instead.
|
|
|
|
|
|
|
|
# You can add multiple keys by separating them with a comma.
|
|
|
|
OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# These are used for various persistence features. Refer to the docs for more
|
|
|
|
# info.
|
|
|
|
# FIREBASE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
# FIREBASE_RTDB_URL=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.firebaseio.com
|
|
|
|
|
2023-04-14 19:21:04 -06:00
|
|
|
# This is only relevant if you want to use the prompt logging feature.
|
|
|
|
# GOOGLE_SHEETS_SPREADSHEET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
# GOOGLE_SHEETS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|