Files

120 lines
4.4 KiB
Batchfile

@echo off
REM Install dependencies
call npm install
REM Set the website of the proxy: you, perplexity, happyapi
set ACTIVE_PROVIDER=you
REM Set the browser type, can be 'chrome', 'edge', or 'auto'
set BROWSER_TYPE=auto
REM Set whether to enable manual login
set USE_MANUAL_LOGIN=true
REM Set whether to hide the browser (recommended to set to true when the browser instance is large) (only effective when `USE_MANUAL_LOGIN=false`)
set HEADLESS_BROWSER=true
REM Set the number of browser instances to start (recommended to set to 1 in non-concurrent scenarios)
set BROWSER_INSTANCE_COUNT=1
REM Set the session auto-release time (in seconds) (0 = disable auto-release)
set SESSION_LOCK_TIMEOUT=180
REM Set whether to enable detection
set ENABLE_DETECTION=true
REM Set whether to enable automatic cookie updates (effective only when `USE_MANUAL_LOGIN=false`)
set ENABLE_AUTO_COOKIE_UPDATE=false
REM Set whether to skip account verification (when enabled, `ALLOW_NON_PRO` is ignored, can be used in scenarios with multiple accounts)
set SKIP_ACCOUNT_VALIDATION=false
REM Set whether to enable request limits (default limit is 3 requests) (for free accounts)
set ENABLE_REQUEST_LIMIT=false
REM Set whether to allow non-Pro accounts
set ALLOW_NON_PRO=false
REM Set the custom end marker (used to handle situations where the output does not stop, leave blank to not use, use double quotes to enclose)
set CUSTOM_END_MARKER="<CHAR_turn>"
REM Set whether to enable delayed sending of requests, if set to false, it will attempt to open the request
set ENABLE_DELAY_LOGIC=false
REM Set whether to enable tunnel access
set ENABLE_TUNNEL=false
REM Set the tunnel type (localtunnel or ngrok)
set TUNNEL_TYPE=ngrok
REM Set the localtunnel subdomain (leave blank for a random domain)
set SUBDOMAIN=
REM Set the ngrok authentication token
REM This is the authentication token for the ngrok account, which can be found in the "Auth" section of the ngrok dashboard.
REM Both free and paid accounts require this to be set.
REM ngrok website: https://dashboard.ngrok.com
set NGROK_AUTH_TOKEN=
REM Set the ngrok custom domain
REM This allows you to use your own domain instead of ngrok's random subdomain.
REM Note: This feature is only available for ngrok paid accounts.
REM Before using this feature, make sure you have added and verified the domain in the ngrok dashboard.
REM Example format: your-custom-domain.com
REM If using a free account or not using a custom domain, leave this blank.
set NGROK_CUSTOM_DOMAIN=
REM Set the https_proxy proxy, can use local socks5 or http(s) proxy
REM For example, using an HTTP proxy: export https_proxy=http://127.0.0.1:7890
REM Or using a SOCKS5 proxy: export https_proxy=socks5://host:port:username:password
set https_proxy=
REM Set the PASSWORD API password
set PASSWORD=
REM Set the PORT port
set PORT=8080
REM Set the AI model (Claude series models can be used directly in the tavern, modifying the `AI_MODEL` environment variable can switch to other models, supported model names are as follows (please refer to the official website for the latest models))
set AI_MODEL=
REM Set custom session mode
set USE_CUSTOM_MODE=false
REM Enable mode rotation
REM Mode rotation is only enabled when both `USE_CUSTOM_MODE` and `ENABLE_MODE_ROTATION` are set to true.
REM Can dynamically switch between custom mode and default mode
set ENABLE_MODE_ROTATION=false
REM Set whether to enable incognito mode
set INCOGNITO_MODE=false
REM Set whether to fake the true role (if enabled, must use txt format for upload)
set USE_BACKSPACE_PREFIX=false
REM Set the upload file format (docx or txt) gpt_4o may be better with txt
set UPLOAD_FILE_FORMAT=txt
REM Set whether to enable CLEWD post-processing
set CLEWD_ENABLED=false
REM ---------------------------------------------------
REM Set whether to insert garbled characters at the beginning
set ENABLE_GARBLED_START=false
REM Set the minimum length of garbled characters to insert at the beginning
set GARBLED_START_MIN_LENGTH=1000
REM Set the maximum length of garbled characters to insert at the beginning
set GARBLED_START_MAX_LENGTH=5000
REM Set the fixed length of garbled characters to insert at the end
set GARBLED_END_LENGTH=500
REM Set whether to insert garbled characters at the end
set ENABLE_GARBLED_END=false
REM ---------------------------------------------------
REM Run the Node.js application
node src/index.mjs
REM Pause script execution, waiting for the user to press any key to exit
pause