113 lines
4.0 KiB
Bash
Executable File
113 lines
4.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Install dependencies
|
|
npm install
|
|
|
|
# Set proxy provider: you, perplexity, happyapi
|
|
export ACTIVE_PROVIDER=you
|
|
|
|
# Set specified browser, can be 'chrome', 'edge' or 'auto'
|
|
export BROWSER_TYPE=auto
|
|
|
|
# Set whether to enable manual login
|
|
export USE_MANUAL_LOGIN=true
|
|
|
|
# Set whether to hide browser (recommended to set to true when browser instance count is large) (only effective when `USE_MANUAL_LOGIN=false`)
|
|
export HEADLESS_BROWSER=true
|
|
|
|
# Set number of browser instances to launch (recommended to set 1 for non-concurrent scenarios)
|
|
export BROWSER_INSTANCE_COUNT=1
|
|
|
|
# Set session auto-release time (unit: seconds) (0=disable auto-release)
|
|
export SESSION_LOCK_TIMEOUT=180
|
|
|
|
# Set whether to enable concurrency limit
|
|
export ENABLE_DETECTION=true
|
|
|
|
# Set whether to enable auto cookie update (effective when USE_MANUAL_LOGIN=false)
|
|
export ENABLE_AUTO_COOKIE_UPDATE=false
|
|
|
|
# Whether to skip account validation (when enabled, `ALLOW_NON_PRO` setting is invalid, usable for large account quantities)
|
|
export SKIP_ACCOUNT_VALIDATION=false
|
|
|
|
# Enable request count limit (default limit 3 requests) (for free accounts)
|
|
export ENABLE_REQUEST_LIMIT=false
|
|
|
|
# Whether to allow non-Pro accounts
|
|
export ALLOW_NON_PRO=false
|
|
|
|
# Set custom terminator (for handling output that won't stop, leave empty to disable, wrap in double quotes)
|
|
export CUSTOM_END_MARKER="<CHAR_turn>"
|
|
|
|
# Set whether to enable delayed request sending, if set to false and requests get stuck try enabling it
|
|
export ENABLE_DELAY_LOGIC=false
|
|
|
|
# Set whether to enable tunnel access
|
|
export ENABLE_TUNNEL=false
|
|
|
|
# Set tunnel type (localtunnel or ngrok)
|
|
export TUNNEL_TYPE=ngrok
|
|
|
|
# Set localtunnel subdomain (leave empty for random domain)
|
|
export SUBDOMAIN=
|
|
|
|
# Set ngrok AUTH TOKEN
|
|
# This is the authentication token for your ngrok account. You can find it in the "Auth" section of the ngrok dashboard.
|
|
# Both free and paid accounts need to set this.
|
|
# ngrok website: https://dashboard.ngrok.com
|
|
export NGROK_AUTH_TOKEN=
|
|
|
|
# Set ngrok custom domain
|
|
# This allows using your own domain instead of ngrok's random subdomain.
|
|
# Note: This feature only works with ngrok paid accounts.
|
|
# Before using this feature, ensure you have added and verified the domain in the ngrok dashboard.
|
|
# Format example: your-custom-domain.com
|
|
# If using a free account or don't want to use a custom domain, leave this empty.
|
|
export NGROK_CUSTOM_DOMAIN=
|
|
|
|
# Set https_proxy proxy, can use local socks5 or http(s) proxy
|
|
# For example, using HTTP proxy: export https_proxy=http://127.0.0.1:7890
|
|
# Or using SOCKS5 proxy: export https_proxy=socks5://host:port:username:password
|
|
export https_proxy=
|
|
|
|
# Set PASSWORD API password
|
|
export PASSWORD=
|
|
|
|
# Set PORT port
|
|
export PORT=8080
|
|
|
|
# Set AI model (Claude series models can be selected directly in Tavern, modifying `AI_MODEL` environment variable can switch to models other than Claude, supported model names below (please refer to official website for latest models))
|
|
export AI_MODEL=
|
|
|
|
# Custom session mode
|
|
export USE_CUSTOM_MODE=false
|
|
|
|
# Enable mode rotation
|
|
# Mode rotation is only enabled when both USE_CUSTOM_MODE and ENABLE_MODE_ROTATION are set to true.
|
|
# Can dynamically switch between custom mode and default mode
|
|
export ENABLE_MODE_ROTATION=false
|
|
|
|
# Whether to enable incognito mode
|
|
export INCOGNITO_MODE=false
|
|
|
|
# Set upload file format (docx or txt) gpt_4o may work better with txt for bypassing limits
|
|
export UPLOAD_FILE_FORMAT=docx
|
|
|
|
# ---------------------------------------------------
|
|
# Control whether to insert garbled text at the beginning
|
|
export ENABLE_GARBLED_START=false
|
|
# Set minimum length of garbled text at the beginning
|
|
export GARBLED_START_MIN_LENGTH=1000
|
|
# Set maximum length of garbled text at the beginning
|
|
export GARBLED_START_MAX_LENGTH=5000
|
|
# Set fixed length of garbled text at the end
|
|
export GARBLED_END_LENGTH=500
|
|
# Control whether to insert garbled text at the end
|
|
export ENABLE_GARBLED_END=false
|
|
# ---------------------------------------------------
|
|
|
|
# Run Node.js application
|
|
node src/index.mjs
|
|
|
|
read -p "Press any key to exit..."
|