From c5ae4c9efa518b615614867fdcb11b3062ba81f1 Mon Sep 17 00:00:00 2001 From: thzxx Date: Sat, 27 Jun 2026 22:10:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9C=80=E5=A4=A7=E8=BF=AD?= =?UTF-8?q?=E4=BB=A3=E6=AC=A1=E6=95=B0=E4=BB=8E=E6=BB=91=E5=9D=97=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=9B=BA=E5=AE=9A=E5=80=BC=E4=B8=8B=E6=8B=89=E9=80=89?= =?UTF-8?q?=E6=8B=A9=20(10/20/50/85/128/256/512)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/settings/SettingsModal.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/settings/SettingsModal.tsx b/src/components/settings/SettingsModal.tsx index b0cd1ee..ad37345 100644 --- a/src/components/settings/SettingsModal.tsx +++ b/src/components/settings/SettingsModal.tsx @@ -143,13 +143,19 @@ function AgentSettings() { const [thinking, setThinking] = useConfig('agent.enableThinking', true); const [thinkingEffort, setThinkingEffort] = useConfig('agent.thinkingEffort', 'high'); + const MAX_ITER_OPTIONS = [10, 20, 50, 85, 128, 256, 512]; + return ( Agent 配置 - - 最大迭代次数{maxIter} - setMaxIter(v as number)} min={1} max={50} size="small" /> - + + 最大迭代次数 + + 总超时 (秒){timeout / 1000}s setTimeout_((v as number) * 1000)} min={60} max={1800} step={60} size="small" />