fix: 智能自动模式使用通用思考动画
- 智能自动模式后端还在分析意图时,显示通用思考动画 - 避免在后端未确定生图前就显示生图占位图 - 等后端确定是生图模型后,自然切换到对应占位图 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
0901bc6329
commit
64dbbd8e6e
@ -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 <VolcanoVisionLoading imageCount={imageCount} />;
|
||||
// 🆕 阿里生图模型使用通用组件,橙色主题,最多 6 张,传递自定义模型名称
|
||||
if (showAlibabaImage) return <ImageGenerationLoading imageCount={imageCount} maxImages={6} providerType="alibaba-image" modelName={currentModelDisplayName} />;
|
||||
// 智能自动模式会先显示通用思考动画,等后端确定模型后自然切换
|
||||
return <ThinkingMessage />;
|
||||
})()}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user