-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
116 lines (85 loc) · 3 KB
/
Copy path.env.example
File metadata and controls
116 lines (85 loc) · 3 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
######### Required fields #########
# Telegram API configuration (get from https://my.telegram.org/apps)
API_ID=
API_HASH=
# Phone number for user account login (format like: +8613812345678)
PHONE_NUMBER=
# Bot Token
BOT_TOKEN=
# User ID (get from @userinfobot)
USER_ID=
################ The following are all optional ##################
# Admin list (fill in user_id, leave blank to default to the USER_ID above, separate multiple users with commas)
ADMINS=
# Bot message deletion time (seconds), 0 means delete immediately, -1 means do not delete
BOT_MESSAGE_DELETE_TIMEOUT=300
# Whether to automatically delete command messages sent by the user (true/false)
USER_MESSAGE_DELETE_ENABLE=false
# Default maximum media file size limit (unit: MB)
DEFAULT_MAX_MEDIA_SIZE=15
# Default timezone
DEFAULT_TIMEZONE=Europe/Berlin
# Automatic update of chat window names in the database time (24-hour format)
CHAT_UPDATE_TIME=03:00
# Database configuration
DATABASE_URL=sqlite:///./db/forward.db
######### UI layout configuration #########
AI_MODELS_PER_PAGE=10
KEYWORDS_PER_PAGE=10
PUSH_CHANNEL_PER_PAGE=10
# Summary list (rows)
SUMMARY_TIME_ROWS=10
# Summary list (columns)
SUMMARY_TIME_COLS=6
# Delay time list (rows)
DELAY_TIME_ROWS=10
# Delay time list (columns)
DELAY_TIME_COLS=6
# Media size list (rows)
MEDIA_SIZE_ROWS=10
# Media size list (columns)
MEDIA_SIZE_COLS=6
# Media extensions list (rows)
MEDIA_EXTENSIONS_ROWS=10
# Media extensions list (columns)
MEDIA_EXTENSIONS_COLS=6
# Number of rules displayed per page
RULES_PER_PAGE=20
######### AI settings #########
# Default AI model
DEFAULT_AI_MODEL=gemini-2.0-flash
# OpenAi API Key
OPENAI_API_KEY=your_openai_api_key
# Leave blank to use the official interface https://api.openai.com/v1
OPENAI_API_BASE=
# Claude API Key
CLAUDE_API_KEY=your_claude_api_key
# Leave blank to use the official interface
CLAUDE_API_BASE=
# Gemini API Key
# Default to using the official interface
GEMINI_API_KEY=your_gemini_api_key
# Third-party API Base compatible with OpenAI interface standards, such as the official one: https://generativelanguage.googleapis.com/v1beta
GEMINI_API_BASE=
# DeepSeek API Key
DEEPSEEK_API_KEY=your_deepseek_api_key
# Leave blank to use the official interface https://api.deepseek.com/v1
DEEPSEEK_API_BASE=
# Qwen API Key
QWEN_API_KEY=your_qwen_api_key
# Leave blank to use the official interface https://dashscope.aliyuncs.com/compatible-mode/v1
QWEN_API_BASE=
# Grok API Key
GROK_API_KEY=your_grok_api_key
# Leave blank to use the official interface https://api.x.ai/v1
GROK_API_BASE=
# Default AI prompt
DEFAULT_AI_PROMPT=Please respect the original meaning and keep the original format, rewriting the following content in English:
# Default AI summary prompt
DEFAULT_SUMMARY_PROMPT=Please summarize the messages from the following channel/group within 24 hours.
# Default summary time (24-hour format)
DEFAULT_SUMMARY_TIME=07:00
# AI summary batch size for message retrieval
SUMMARY_BATCH_SIZE=20
# AI summary message retrieval interval (seconds)
SUMMARY_BATCH_DELAY=2