feat: 增加多网站聚合模式

This commit is contained in:
foxhui
2025-12-12 17:58:46 +08:00
Unverified
parent 589cd68040
commit c6ffc1af2f
7 changed files with 227 additions and 38 deletions
+17
View File
@@ -51,6 +51,15 @@ backend:
# - nanobananafree_ai (Nano Banana Free)
# - zai_is (zAI)
type: lmarena
# 聚合模式设置 (优先级高于 type)
# 启用后,系统将复用单个浏览器标签页处理所有后端任务
merge:
enable: false
# 聚合列表 (按优先级排序,模型匹配时优先使用靠前的适配器)
type:
- zai_is
- lmarena
# Gemini Business 设置
geminiBiz:
@@ -167,6 +176,14 @@ export function loadConfig() {
};
}
// 新增:Merge 配置初始化
if (!config.backend.merge) {
config.backend.merge = {
enable: false,
type: ['zai_is', 'lmarena']
};
}
// 校验 GeminiBiz 配置
if (config.backend.type === 'gemini_biz') {
if (!config.backend.geminiBiz || !config.backend.geminiBiz.entryUrl) {