Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Remove redundant from_variable_selector null-check (#24842)
Yongtao Huang72acd9b48381
diff --git a/api/core/workflow/nodes/answer/answer_stream_processor.py b/api/core/workflow/nodes/answer/answer_stream_processor.pyindex 97666fad057..4a75c9edd45 100644--- a/api/core/workflow/nodes/answer/answer_stream_processor.py+++ b/api/core/workflow/nodes/answer/answer_stream_processor.py@@ -149,9 +149,6 @@ class AnswerStreamProcessor(StreamProcessor):return []stream_output_value_selector = event.from_variable_selector- if not stream_output_value_selector:- return []-stream_out_answer_node_ids = []for answer_node_id, route_position in self.route_position.items():if answer_node_id not in self.rest_node_ids:diff --git a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsxindex 31f81d274d1..e6b6c838460 100644--- a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx+++ b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx@@ -18,7 +18,7 @@ import s from './style.module.css'import Modal from '@/app/components/base/modal'import Button from '@/app/components/base/button'import Toast from '@/app/components/base/toast'-import { generateBasicAppFistTimeRule, generateRule } from '@/service/debug'+import { generateBasicAppFirstTimeRule, generateRule } from '@/service/debug'import type { CompletionParams, Model } from '@/types/app'import type { AppType } from '@/types/app'import Loading from '@/app/components/base/loading'@@ -226,7 +226,7 @@ const GetAutomaticRes: FC<IGetAutomaticResProps> = ({let apiRes: GenReslet hasError = falseif (isBasicMode || !currentPrompt) {- const { error, ...res } = await generateBasicAppFistTimeRule({+ const { error, ...res } = await generateBasicAppFirstTimeRule({instruction,model_config: model,no_variable: false,diff --git a/web/service/debug.ts b/web/service/debug.tsindex 20a4f0953f5..fab2910c5e5 100644--- a/web/service/debug.ts+++ b/web/service/debug.ts@@ -80,7 +80,7 @@ export const fetchConversationMessages = (appId: string, conversation_id: string})}-export const generateBasicAppFistTimeRule = (body: Record<string, any>) => {+export const generateBasicAppFirstTimeRule = (body: Record<string, any>) => {return post<BasicAppFirstRes>('/rule-generate', {body,})