From fef42a05eec6e934abb4f4c3925ee70e20ad8d0f Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 6 Feb 2026 16:12:17 +0800 Subject: [PATCH] chore: max interatons default to 100 --- .../llm/components/tools/max-iterations.tsx | 24 ++++++------------- .../components/workflow/nodes/llm/default.ts | 1 + 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/web/app/components/workflow/nodes/llm/components/tools/max-iterations.tsx b/web/app/components/workflow/nodes/llm/components/tools/max-iterations.tsx index d9de3623e3..f789b280ec 100644 --- a/web/app/components/workflow/nodes/llm/components/tools/max-iterations.tsx +++ b/web/app/components/workflow/nodes/llm/components/tools/max-iterations.tsx @@ -1,6 +1,5 @@ import { memo } from 'react' import { InputNumber } from '@/app/components/base/input-number' -import Slider from '@/app/components/base/slider' import Tooltip from '@/app/components/base/tooltip' import { cn } from '@/utils/classnames' @@ -12,28 +11,19 @@ type MaxIterationsProps = { } const MaxIterations = ({ value = 10, onChange, className }: MaxIterationsProps) => { return ( -
-
Max Iterations
- -
- {})} - min={1} - max={99} - step={1} +
+
+
Max Iterations
+
{})} min={1} - max={99} step={1} />
diff --git a/web/app/components/workflow/nodes/llm/default.ts b/web/app/components/workflow/nodes/llm/default.ts index 26ecd88af8..d3b0ff0b9f 100644 --- a/web/app/components/workflow/nodes/llm/default.ts +++ b/web/app/components/workflow/nodes/llm/default.ts @@ -54,6 +54,7 @@ const nodeDefault: NodeDefault = { vision: { enabled: false, }, + max_iterations: 100, }, defaultRunInputData: { '#context#': [RETRIEVAL_OUTPUT_STRUCT],