From 64dbbd8e6eb70d74a1858e5217a3b8a18163b2ae Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 31 Jan 2026 23:46:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=99=BA=E8=83=BD=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=BD=BF=E7=94=A8=E9=80=9A=E7=94=A8=E6=80=9D?= =?UTF-8?q?=E8=80=83=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 智能自动模式后端还在分析意图时,显示通用思考动画 - 避免在后端未确定生图前就显示生图占位图 - 等后端确定是生图模型后,自然切换到对应占位图 Co-authored-by: Cursor --- components/messages.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/messages.tsx b/components/messages.tsx index 471a5047c..d160331e4 100644 --- a/components/messages.tsx +++ b/components/messages.tsx @@ -104,7 +104,7 @@ function PureMessages({ (m: DynamicModel) => m.id === selectedModelId && m.providerType === "volcano-vision" ) ?? false; - // 🆕 判断是否是阿里生图模型 + // 🆕 判断是否是阿里生图模型(或者智能自动模式默认使用阿里生图占位图) const isAlibabaImageModel = modelsData?.models?.some( (m: DynamicModel) => m.id === selectedModelId && m.providerType === "alibaba-image" ) ?? false; @@ -167,6 +167,7 @@ function PureMessages({ ); // 判断是否是图片生成模型(包括 Gemini、火山、阿里) + // 注意:智能自动模式不在这里判断,因为后端还在分析意图,可能最终是对话而不是生图 const isImageGenModel = isGeminiModel || isVolcanoVisionModel || isAlibabaImageModel; // 根据模型类型判断是否有有效内容 @@ -318,6 +319,7 @@ function PureMessages({ if (showVolcano) return ; // 🆕 阿里生图模型使用通用组件,橙色主题,最多 6 张,传递自定义模型名称 if (showAlibabaImage) return ; + // 智能自动模式会先显示通用思考动画,等后端确定模型后自然切换 return ; })()}