Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

refactor(agent-form): remove maxTokens switch field from sub-agent form (#19830)

chanx1e66f21f5de3
diff --git a/web/src/pages/agent/form/agent-form/index.tsx b/web/src/pages/agent/form/agent-form/index.tsx
index 88e76e34c9..26efd8f29c 100644
--- a/web/src/pages/agent/form/agent-form/index.tsx
+++ b/web/src/pages/agent/form/agent-form/index.tsx
@@ -165,14 +165,6 @@ function AgentForm({ node }: INextOperatorForm) {
<FormWrapper>
{isSubAgent && <DescriptionField></DescriptionField>}
<LargeModelFormField></LargeModelFormField>
- <SliderInputSwitchFormField
- name="max_tokens"
- checkName="maxTokensEnabled"
- label="maxTokens"
- numberInputClassName="w-24 shrink-0"
- min={0}
- max={128000}
- />
{(mcpIds.length > 0 || hasSubAgentOrTool(edges, node?.id)) && (
<FormField
control={form.control}
@@ -342,7 +334,6 @@ function AgentForm({ node }: INextOperatorForm) {
)}
</section>
</Collapse>
-
<Output list={outputList}>
<RAGFlowFormItem name="showStructuredOutput">
{(field) => (