mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
feat: 初步支持 zAI/zai.is 且支持自动续登
This commit is contained in:
@@ -155,6 +155,16 @@ export const NANOBANANAFREE_AI_MODELS = {
|
||||
}
|
||||
};
|
||||
|
||||
// zai.is 后端模型配置
|
||||
export const ZAI_IS_MODELS = {
|
||||
"gemini-3-pro-image-preview": {
|
||||
imagePolicy: IMAGE_POLICY.OPTIONAL
|
||||
},
|
||||
"gemini-2.5-flash-image": {
|
||||
imagePolicy: IMAGE_POLICY.OPTIONAL
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取后端对应的模型配置表
|
||||
* @param {string} backendName - 后端名称 ('lmarena' 或 'gemini_biz' 或 'nanobananafree_ai')
|
||||
@@ -169,6 +179,8 @@ function getModelsConfigForBackend(backendName) {
|
||||
return GEMINI_BIZ_MODELS;
|
||||
case 'nanobananafree_ai':
|
||||
return NANOBANANAFREE_AI_MODELS;
|
||||
case 'zai_is':
|
||||
return ZAI_IS_MODELS;
|
||||
// 将来新增其它后端:
|
||||
// case 'foo_site':
|
||||
// return FOO_SITE_MODELS;
|
||||
|
||||
Reference in New Issue
Block a user