feat: Variable assignment nodes support ending nodes (#4247)
parent
a66e636aa4
commit
2dee3532ff
|
|
@ -20,7 +20,8 @@ from models_provider.tools import get_model_credential
|
||||||
from tools.models.tool import Tool
|
from tools.models.tool import Tool
|
||||||
|
|
||||||
end_nodes = ['ai-chat-node', 'reply-node', 'function-node', 'function-lib-node', 'application-node',
|
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:
|
class Answer:
|
||||||
|
|
|
||||||
|
|
@ -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> = [
|
const end_nodes: Array<string> = [
|
||||||
WorkflowType.AiChat,
|
WorkflowType.AiChat,
|
||||||
|
|
@ -18,7 +18,8 @@ const end_nodes: Array<string> = [
|
||||||
WorkflowType.LoopBodyNode,
|
WorkflowType.LoopBodyNode,
|
||||||
WorkflowType.LoopNode,
|
WorkflowType.LoopNode,
|
||||||
WorkflowType.LoopBreakNode,
|
WorkflowType.LoopBreakNode,
|
||||||
WorkflowType.VideoUnderstandNode
|
WorkflowType.VideoUnderstandNode,
|
||||||
|
WorkflowType.VariableAssignNode,
|
||||||
]
|
]
|
||||||
|
|
||||||
const loop_end_nodes: Array<string> = [
|
const loop_end_nodes: Array<string> = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue