-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathconfig.toml.example
More file actions
161 lines (142 loc) · 4.55 KB
/
Copy pathconfig.toml.example
File metadata and controls
161 lines (142 loc) · 4.55 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[download]
audio_quality = "30216"
output_dir = "./transcriptions"
# 数据库文件存放目录(CLI 和 Web UI 共享)
db_dir = "./db_data"
[storage]
# 可选: "local"、"minio"、"alicloud"
# Groq 转录可以使用 local;Qwen/DashScope 文件转录需要 minio 或 alicloud 提供公网临时 URL。
backend = "local"
[storage.minio]
endpoint = "127.0.0.1:9000"
bucket = "b2t-transcriptions"
access_key = "your-minio-access-key"
secret_key = "your-minio-secret-key"
secure = false
region = ""
base_prefix = "b2t"
auto_create_bucket = true
temporary_url_expire_seconds = 7200
[storage.alicloud]
region = "cn-beijing"
bucket = "your-oss-bucket"
access_key_id = "your-access-key-id"
access_key_secret = "your-access-key-secret"
base_prefix = "b2t"
temporary_prefix = "temp-audio"
public_base_url = ""
auto_create_bucket = false
[stt]
# 当前启用的 STT profile
# 开箱默认使用 groq-main,避免必须先配置对象存储。
# 如需 DashScope/Qwen ASR,将这里改为 "qwen-main",并配置 storage.alicloud 或 storage.minio。
profile = "groq-main"
[stt.profiles.qwen-main]
provider = "qwen"
language = "zh"
# 可选: "local"、"minio"、"alicloud"。为空时复用 storage.backend。
storage_profile = "alicloud"
qwen_api_key = "your-dashscope-api-key"
# 支持 `qwen3-asr-flash-filetrans` 与 `fun-asr`
qwen_model = "qwen3-asr-flash-filetrans"
qwen_base_url = "https://dashscope.aliyuncs.com/api/v1"
[stt.profiles.groq-main]
provider = "groq"
language = "zh"
storage_profile = "local"
# groq_api_key 可从 https://console.groq.com/keys 获取
groq_api_key = "your-groq-api-key"
groq_model = "whisper-large-v3-turbo"
groq_base_url = "https://api.groq.com/openai/v1"
groq_chunk_length = 1800
groq_overlap = 10
groq_bitrate = "64k"
[summarize]
profile = "bailian-main"
# 默认开启 thinking;OpenRouter 走 extra_body.reasoning,百炼走 extra_body.enable_thinking
enable_thinking = true
preset = "timeline_merge"
presets_file = "summary_presets.toml"
# 可选:按 UP 主注入术语纠错上下文,默认读取项目根目录的 context.toml。
# 文件不存在时会自动跳过,不影响总结流程。
context_file = "context.toml"
[summarize.profiles.bailian-main]
provider = "bailian"
model = "qwen3-max"
api_base = "https://dashscope.aliyuncs.com/compatible-mode/v1"
api_key = "your-dashscope-api-key"
[summarize.profiles.openrouter-main]
provider = "openrouter"
model = "moonshotai/kimi-k2.5"
api_base = "https://openrouter.ai/api/v1"
api_key = "your-openrouter-api-key"
# 可选:OpenRouter 路由时优先尝试的 provider(1 个或多个)
providers = ["OpenAI", "Anthropic"]
[summarize.profiles.groq-main]
provider = "groq"
model = "llama-3.3-70b-versatile"
api_base = "https://api.groq.com/openai/v1"
api_key = "your-groq-api-key"
[fancy_html]
# Fancy HTML 默认使用的 profile。
# 这里必须显式配置,不再回退到 summarize.profile。
profile = "openrouter-main"
[converter]
min_length = 60
[rag]
enabled = false
collection_name = "b2t_rag"
chroma_dir = "./chroma_data"
chunk_size = 800
chunk_overlap = 100
top_k = 10
# RAG 回答阶段复用 summarize.profiles 中的模型配置
llm_profile = "bailian-main"
[rag.embedding]
provider = "bailian"
model = "text-embedding-v3"
api_base = "https://dashscope.aliyuncs.com/compatible-mode/v1"
api_key = "your-dashscope-api-key"
[feishu]
# 可选: "disabled"、"webhook"、"app"
mode = "disabled"
# mode=webhook 时使用群机器人 webhook
webhook_url = "https://open.feishu.cn/open-apis/bot/v2/hook/your-webhook-token"
# mode=app 时使用自建应用发卡片
app_id = ""
app_secret = ""
receive_id = ""
# 可选: open_id、user_id、union_id、chat_id、email
receive_id_type = "open_id"
title_prefix = "b2t"
timeout_seconds = 20
# 飞书消息内最多保留多少字符的总结正文
summary_max_chars = 8000
[bilibili]
SESSDATA = ""
bili_jct = ""
buvid3 = ""
DedeUserID = ""
DedeUserID__ckMd5 = ""
refresh_token = ""
[analytics.counterscale]
site_id = ""
tracker_url = ""
[monitor]
enabled = false
state_file = "./db_data/bilibili_monitor_state.json"
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
lookback_hours = 48
first_run_max_push = 3
default_check_interval = 300
startup_notification = true
# 可选:单独覆盖监控链路使用的总结 preset / profile
summary_preset = ""
summary_profile = ""
# 为空时复用 download.output_dir
output_dir = ""
# 监控功能的 creator 配置暂不在 README 中展开。需要时按下面格式添加:
# [[monitor.creators]]
# uid = 123456
# name = "creator-name"
# check_interval = 300