fix(media): Grok 视频 - 支持 xAI 与 Sub2API 生成协议

Refs #7
This commit is contained in:
Hao OUYANG
2026-07-22 20:43:42 +08:00
parent 2fb46cb7e4
commit 2c9bba20b3
13 changed files with 129 additions and 37 deletions

View File

@@ -80,6 +80,7 @@ const channelProtocolOptions = [
{ label: "NewAPI 视频", value: "newapi" },
{ label: "NewAPI 渠道 1", value: "newapi-channel-1" },
{ label: "NewAPI 渠道 2", value: "newapi-channel-2" },
{ label: "xAI / Sub2API 视频", value: "xai-video" },
],
},
];
@@ -750,6 +751,8 @@ function channelProtocolLabel(channel: ModelChannel) {
return "NewAPI 渠道 1";
case "newapi-channel-2":
return "NewAPI 渠道 2";
case "xai-video":
return "xAI / Sub2API 视频";
default:
return "OpenAI 自动兼容";
}