@@ -677,7 +677,7 @@ export function InputBox({
: "*:data-[slot='input-group']:rounded-3xl",
// 紧凑落地态(CM 参考图):白卡 + 细边 + 轻阴影 + 主色聚焦环(无旋转彩边)
compact && isNewThread
- ? "rounded-2xl border border-gray-200/70 bg-white overflow-hidden shadow-[0_4.5px_22px_rgba(0,0,0,0.025)] transition-all duration-300 focus-within:border-[rgb(var(--legacy-primary-rgb)/35%)] focus-within:ring-4 focus-within:ring-[rgb(var(--legacy-primary-rgb)/5%)] focus-within:shadow-[0_10px_35px_rgb(var(--legacy-primary-rgb)/4%)] dark:border-slate-700 dark:bg-slate-800"
+ ? "rounded-2xl border border-gray-200/70 bg-white overflow-hidden shadow-[0_4.5px_22px_rgba(0,0,0,0.025)] transition-all duration-300 focus-within:border-[rgb(var(--legacy-primary-rgb)/35%)] focus-within:ring-4 focus-within:ring-[rgb(var(--legacy-primary-rgb)/5%)] focus-within:shadow-[0_10px_35px_rgb(var(--legacy-primary-rgb)/4%)] dark:border-slate-700 dark:bg-slate-800"
: // landing 态:透明,让外层 gemini-gradient-border 提供白卡 + 旋转描边
// 对话态:常规白卡 + 中性边框 + 轻阴影
isNewThread
@@ -727,16 +727,16 @@ export function InputBox({
/>
*/}
- {!frontendRagActive && (
-
- )}
- {!frontendRagActive &&
+ )}
+ {!frontendRagActive &&
- {context.writing_mode && (
-
- )}
-
- 写作
-
- }
- {!frontendRagActive &&
+ {context.writing_mode && (
+
+ )}
+
+ 写作
+
+ }
+ {!frontendRagActive &&
- {memoryInjectionEnabled && (
-
- )}
-
- 记忆
-
- }
- {!frontendRagActive &&
+ {memoryInjectionEnabled && (
+
+ )}
+
+ 记忆
+
+ }
+ {!frontendRagActive &&
参考文献
- }
- {!frontendRagActive &&
}
+ {!frontendRagActive &&
上下文压缩
- }
+ }
-
+ ? context.mode
+ : "flash"
+ }
+ tooltipContent={
+ singleRoundRagActive
+ ? "单轮 RAG 问答:基于知识库检索生成答案,并展示参考资料"
+ : multiRoundRagActive
+ ? "多轮 RAG 问答:多次检索并展示检索过程与参考资料"
+ : undefined
+ }
+ >
-
- {frontendRagActive ? (
-
- ) : context.mode === "flash" ? (
-
- ) : context.mode === "thinking" ? (
-
- ) : context.mode === "pro" ? (
-
- ) : context.mode === "ultra" ? (
-
- ) : null}
-
+ >
+
+ {frontendRagActive ? (
+
+ ) : context.mode === "flash" ? (
+
+ ) : context.mode === "thinking" ? (
+
+ ) : context.mode === "pro" ? (
+
+ ) : context.mode === "ultra" ? (
+
+ ) : null}
+
- {frontendRagActive
- ? multiRoundRagActive
- ? "多轮 RAG"
- : "单轮 RAG"
- : (context.mode === "flash" && t.inputBox.flashMode) ||
- (context.mode === "thinking" &&
- t.inputBox.reasoningMode) ||
- (context.mode === "pro" && t.inputBox.proMode) ||
- (context.mode === "ultra" && t.inputBox.ultraMode)}
-
+ {frontendRagActive
+ ? multiRoundRagActive
+ ? "多轮 RAG"
+ : "单轮 RAG"
+ : (context.mode === "flash" && t.inputBox.flashMode) ||
+ (context.mode === "thinking" &&
+ t.inputBox.reasoningMode) ||
+ (context.mode === "pro" && t.inputBox.proMode) ||
+ (context.mode === "ultra" && t.inputBox.ultraMode)}
+