fix: 修复阿里生图模型动态占位卡片不显示问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

- 在 chat.tsx 中添加 alibaba-image 类型到 startGeneration
- 确保 pendingGeneration 记录正确的 modelType
This commit is contained in:
Your Name 2026-01-12 14:05:55 +08:00
parent 4008e958a3
commit e9d9d14d07

View File

@ -356,6 +356,7 @@ export function Chat({
else if (model?.providerType === "volcano-vision") modelType = "volcano-vision"; else if (model?.providerType === "volcano-vision") modelType = "volcano-vision";
else if (model?.providerType === "volcano-video") modelType = "volcano-video"; else if (model?.providerType === "volcano-video") modelType = "volcano-video";
else if (model?.providerType === "qianwen-video") modelType = "qianwen-video"; else if (model?.providerType === "qianwen-video") modelType = "qianwen-video";
else if (model?.providerType === "alibaba-image") modelType = "alibaba-image";
console.log(`[Chat] 🚀 记录生成任务: modelType=${modelType}, modelId=${currentModelId}`); console.log(`[Chat] 🚀 记录生成任务: modelType=${modelType}, modelId=${currentModelId}`);
startGeneration(currentModelId, modelType); startGeneration(currentModelId, modelType);