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" />