Implements prompt logging via Google Sheets (khanon/oai-reverse-proxy!1)
This commit is contained in:
+24
-7
@@ -1,16 +1,33 @@
|
||||
# Copy this file to .env and fill in the values.
|
||||
# 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.
|
||||
|
||||
# Set your OpenAI API key(s) below, separated by commas if you have multiple keys.
|
||||
OPENAI_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
|
||||
# Optional settings (please see config.ts for more details)
|
||||
# PORT=7860
|
||||
# PROXY_KEY=your-secret-key
|
||||
# MODEL_RATE_LIMIT=4
|
||||
# MAX_OUTPUT_TOKENS=300
|
||||
# LOG_LEVEL=info
|
||||
# LOG_PROMPTS=false
|
||||
# REJECT_DISALLOWED=false
|
||||
# REJECT_MESSAGE="This content violates /aicg/'s acceptable use policy."
|
||||
# REJECT_SAMPLE_RATE=0.2
|
||||
# CHECK_KEYS=false
|
||||
|
||||
# Note: CHECK_KEYS is disabled by default in local development mode, but enabled
|
||||
# by default in production mode.
|
||||
|
||||
# Optional settings for prompt logging to Google Sheets
|
||||
# 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
|
||||
|
||||
# You can require a bearer token to access the proxy by setting the key below.
|
||||
# PROXY_KEY=your-secret-key
|
||||
|
||||
# This is only relevant if you want to use the prompt logging feature.
|
||||
# GOOGLE_SHEETS_SPREADSHEET_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
# GOOGLE_SHEETS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
|
||||
Reference in New Issue
Block a user