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

@@ -193,7 +193,7 @@ export function ChannelModelManager({ channel, onClose, onChanged }: { channel:
function capabilityFromInterface(value?: ModelChannel["interfaceType"]): ChannelModel["capability"] {
if (value === "openai-image") return "image";
if (value === "newapi" || value === "newapi-channel-1" || value === "newapi-channel-2") return "video";
if (value === "newapi" || value === "newapi-channel-1" || value === "newapi-channel-2" || value === "xai-video") return "video";
return "text";
}