-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
29 lines (25 loc) · 880 Bytes
/
Copy path.env.example
File metadata and controls
29 lines (25 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Example environment variables for BiliScriptor.
# Copy this file to .env and fill real values locally.
# Aliyun Bailian ASR uses the official dashscope Python SDK.
# DASHSCOPE_API_KEY matches the official dashscope SDK docs.
DASHSCOPE_API_KEY=your-dashscope-api-key
# Optional request tuning. Defaults are shown here for discoverability.
BILI_RATE_LIMIT=1.0
BILI_RATE_LIMIT_JITTER=0.2
BILI_RATE_LIMIT_STRATEGY=adaptive
BILI_MAX_RETRIES=3
BILI_RETRY_BASE_DELAY=0.5
BILI_RETRY_MAX_DELAY=30.0
BILI_RETRY_JITTER=0.5
BILI_RISK_CONTROL_EXTRA_RETRIES=2
BILI_TIMEOUT=30
BILI_ROTATE_USER_AGENT=1
# Optional extractor limits.
BILI_DANMAKU_SEGMENT_DURATION=360
BILI_COMMENT_PAGE_SAFETY_CAP=1000
BILI_REPLY_PAGE_SAFETY_CAP=500
BILI_DEFAULT_COMMENT_PAGES=1
BILI_DEFAULT_REPLY_PAGES=1
# Optional cache location.
BILI_WBI_KEYS_TTL=3600
BILI_WBI_KEYS_CACHE_FILE=runtime/wbi_keys_cache.json