Spaces:
Sleeping
Sleeping
Create .env
Browse files
.env
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copy this file to .env and fill in the values you wish to change. Most already
|
2 |
+
# have sensible defaults. See config.ts for more details.
|
3 |
+
|
4 |
+
# PORT=7860
|
5 |
+
# SERVER_TITLE=Coom Tunnel
|
6 |
+
# MODEL_RATE_LIMIT=4
|
7 |
+
# MAX_OUTPUT_TOKENS_OPENAI=300
|
8 |
+
# MAX_OUTPUT_TOKENS_ANTHROPIC=900
|
9 |
+
# LOG_LEVEL=info
|
10 |
+
# REJECT_DISALLOWED=false
|
11 |
+
# REJECT_MESSAGE="This content violates /aicg/'s acceptable use policy."
|
12 |
+
# CHECK_KEYS=true
|
13 |
+
# QUOTA_DISPLAY_MODE=full
|
14 |
+
# QUEUE_MODE=fair
|
15 |
+
# BLOCKED_ORIGINS=reddit.com,9gag.com
|
16 |
+
# BLOCK_MESSAGE="You must be over the age of majority in your country to use this service."
|
17 |
+
# BLOCK_REDIRECT="https://roblox.com/"
|
18 |
+
|
19 |
+
# Note: CHECK_KEYS is disabled by default in local development mode, but enabled
|
20 |
+
# by default in production mode.
|
21 |
+
|
22 |
+
# Optional settings for user management. See docs/user-management.md.
|
23 |
+
GATEKEEPER=proxy_key
|
24 |
+
# GATEKEEPER_STORE=memory
|
25 |
+
# MAX_IPS_PER_USER=20
|
26 |
+
|
27 |
+
# Optional settings for prompt logging. See docs/logging-sheets.md.
|
28 |
+
# PROMPT_LOGGING=false
|
29 |
+
|
30 |
+
# ------------------------------------------------------------------------------
|
31 |
+
# The values below are secret -- make sure they are set securely.
|
32 |
+
# For Huggingface, set them via the Secrets section in your Space's config UI.
|
33 |
+
# For Render, create a "secret file" called .env using the Environment tab.
|
34 |
+
|
35 |
+
# You can add multiple keys by separating them with a comma.
|
36 |
+
OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
37 |
+
ANTHROPIC_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
38 |
+
|
39 |
+
# TEMPORARY: This will eventually be replaced by a more robust system.
|
40 |
+
# You can adjust the models used when sending OpenAI prompts to /anthropic.
|
41 |
+
# Refer to Anthropic's docs for more info (note that they don't list older
|
42 |
+
# versions of the models, but they still work).
|
43 |
+
# CLAUDE_SMALL_MODEL=claude-v1.2
|
44 |
+
# CLAUDE_BIG_MODEL=claude-v1-100k
|
45 |
+
|
46 |
+
# You can require a Bearer token for requests when using proxy_token gatekeeper.
|
47 |
+
# PROXY_KEY=your-secret-key
|
48 |
+
|
49 |
+
# You can set an admin key for user management when using user_token gatekeeper.
|
50 |
+
# ADMIN_KEY=your-very-secret-key
|
51 |
+
|
52 |
+
# These are used for various persistence features. Refer to the docs for more
|
53 |
+
# info.
|
54 |
+
# FIREBASE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
55 |
+
# FIREBASE_RTDB_URL=https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.firebaseio.com
|
56 |
+
|
57 |
+
# This is only relevant if you want to use the prompt logging feature.
|
58 |
+
# GOOGLE_SHEETS_SPREADSHEET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
59 |
+
# GOOGLE_SHEETS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|