-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
135 lines (107 loc) · 3.2 KB
/
Copy pathconfig.example.toml
File metadata and controls
135 lines (107 loc) · 3.2 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# ─── Platform credentials & global settings ───────────────────────────────────
sendAsImage = true
enableApproval = true
pollIntervalMinutes = 5
maxPostsPerFetch = 20
maxTweetAgeMinutes = 60
imageCacheTtlMinutes = 60
xToImageApiUrl = ""
xToImageApiToken = ""
xToImageApiTheme = "dark"
[discord]
enabled = false
token = "YOUR_DISCORD_BOT_TOKEN"
embedColor = "#1DA1F2"
[telegram]
enabled = true
token = "YOUR_TELEGRAM_BOT_TOKEN"
parseMode = "HTML"
apiRoot = ""
[twitter]
enabled = true # 设为 false 可关闭推文监控, 只跑 AI 聊天 / WebUI
authToken = ""
ct0 = ""
username = ""
password = ""
email = ""
totpSecret = ""
[webui]
enabled = true
port = 3000
host = "0.0.0.0"
password = ""
[ai]
enabled = false
apiUrl = "https://api.openai.com/v1"
apiKey = ""
model = "gpt-3.5-turbo"
systemPrompt = "你是一个有帮助的助手。"
maxTokens = 1024
temperature = 0.7
allowedGuildIds = []
maxToolIterations = 8
reactions = true # 让模型在最终回复里返回 emoji 短码, 给用户消息贴表情反应
[ai.webSearch]
enabled = false
provider = "duckduckgo" # duckduckgo | tavily | serper | brave | searxng
apiKey = "" # tavily / serper / brave 需要
baseUrl = "" # searxng 实例地址
maxResults = 5
[ai.memory]
enabled = false
maxProfileItems = 12 # 每轮强制注入的画像最多取几条(按权重)
maxProfileChars = 800 # 画像字符上限
recentTurns = 6 # 每轮自动附带的最近对话条数(连续性), 0 关闭
recallLimit = 8 # recall_memory 按需检索时每类返回的条数
logConversations = true
maxConversationsPerUser = 500
[ai.summary]
enabled = false # @机器人 "总结一下上面的200条消息" 时生效
maxMessagesPerChannel = 500 # 每个频道滚动保留的消息数(也是可总结的上限)
defaultCount = 100 # 未指定条数时默认总结多少条
# ─── Groups (required) ────────────────────────────────────────────────────────
[[groups]]
name = "my-group"
[[groups.users]]
username = "elonmusk"
displayName = "Elon"
[groups.users.filters]
excludeRetweets = true
excludeReplies = false
[groups.users.filters.keywords]
include = ["tesla", "spacex"]
[groups.users.filters.media]
requireMedia = false
[[groups.users]]
username = "RhenCloud_"
displayName = "RhenCloud"
[groups.users.filters]
excludeRetweets = false
[groups.users.filters.keywords]
include = []
[groups.users.filters.media]
requireMedia = false
[groups.discord]
channelId = "1234567890"
r14ChannelId = "1234567891"
[groups.telegram]
chatId = "-1001234567890"
[groups.telegram.targets]
[groups.telegram.targets.r14]
chatId = "-100_R14_CHAT_ID"
[groups.approval]
discordAdminChannelId = "1234567892"
discordApproveRoleId = "1234567893"
telegramAdminChatIds = ["111111111"]
[[groups]]
name = "another-group"
[[groups.users]]
username = "spacex"
displayName = "SpaceX"
[groups.users.filters]
[groups.users.filters.keywords]
include = []
[groups.users.filters.media]
requireMedia = false
[groups.discord]
channelId = "9876543210"