feat: Variable assignment nodes support ending nodes (#4247)

This commit is contained in:
shaohuzhang1 2025-10-24 11:59:08 +08:00 committed by GitHub
parent a66e636aa4
commit 2dee3532ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -20,7 +20,8 @@ from models_provider.tools import get_model_credential
from tools.models.tool import Tool
end_nodes = ['ai-chat-node', 'reply-node', 'function-node', 'function-lib-node', 'application-node',
'image-understand-node', 'speech-to-text-node', 'text-to-speech-node', 'image-generate-node']
'image-understand-node', 'speech-to-text-node', 'text-to-speech-node', 'image-generate-node',
'variable-assign-node']
class Answer:

View File

@ -1,6 +1,6 @@
import {WorkflowType, WorkflowMode} from '@/enums/application'
import { WorkflowType, WorkflowMode } from '@/enums/application'
import {t} from '@/locales'
import { t } from '@/locales'
const end_nodes: Array<string> = [
WorkflowType.AiChat,
@ -18,7 +18,8 @@ const end_nodes: Array<string> = [
WorkflowType.LoopBodyNode,
WorkflowType.LoopNode,
WorkflowType.LoopBreakNode,
WorkflowType.VideoUnderstandNode
WorkflowType.VideoUnderstandNode,
WorkflowType.VariableAssignNode,
]
const loop_end_nodes: Array<string> = [