mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
feat: 增加多网站聚合模式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user