mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: Variable assignment nodes support ending nodes (#4247)
This commit is contained in:
parent
a66e636aa4
commit
2dee3532ff
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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> = [
|
||||
|
|
|
|||
Loading…
Reference in New Issue