diff --git a/web/pages/Assistants.tsx b/web/pages/Assistants.tsx index c57518b..ac4ef82 100644 --- a/web/pages/Assistants.tsx +++ b/web/pages/Assistants.tsx @@ -793,45 +793,45 @@ export const AssistantsPage: React.FC = () => { -
- -
-
- updateAssistant('interruptionSensitivity', parseInt(e.target.value) || 0)} - disabled={!canAdjustInterruptionSensitivity} - className="w-20 h-8 text-right pr-7 text-xs font-mono bg-black/40 border-white/5 disabled:opacity-40 disabled:cursor-not-allowed" - /> - ms + {canAdjustInterruptionSensitivity && ( + <> +
+ +
+
+ updateAssistant('interruptionSensitivity', parseInt(e.target.value) || 0)} + className="w-20 h-8 text-right pr-7 text-xs font-mono bg-black/40 border-white/5" + /> + ms +
-
-
- updateAssistant('interruptionSensitivity', parseInt(e.target.value))} - disabled={!canAdjustInterruptionSensitivity} - className="flex-1 h-1.5 bg-secondary rounded-lg appearance-none cursor-pointer accent-primary disabled:opacity-40 disabled:cursor-not-allowed" - /> -
-
- 0ms(极易打断) - 1000ms - 2000ms(较难打断) -
-

- {canAdjustInterruptionSensitivity - ? '用户持续说话达到该时长后,AI 将停止当前发言并响应。数值越小越敏感,也更容易被噪音触发。' - : '当前为“不可打断”,打断灵敏度已禁用。'} -

+
+ updateAssistant('interruptionSensitivity', parseInt(e.target.value))} + className="flex-1 h-1.5 bg-secondary rounded-lg appearance-none cursor-pointer accent-primary" + /> +
+
+ 0ms(极易打断) + 1000ms + 2000ms(较难打断) +
+

+ 用户持续说话达到该时长后,AI 将停止当前发言并响应。数值越小越敏感,也更容易被噪音触发。 +

+ + )}