mirror of
https://github.com/langgenius/dify.git
synced 2026-04-24 21:05:48 +08:00
answer node
This commit is contained in:
@ -14,7 +14,7 @@ const nodeDefault: NodeDefault<CodeNodeType> = {
|
||||
},
|
||||
getAvailablePrevNodes(isChatMode: boolean) {
|
||||
const nodes = isChatMode
|
||||
? ALL_CHAT_AVAILABLE_BLOCKS.filter(type => type !== BlockEnum.Answer)
|
||||
? ALL_CHAT_AVAILABLE_BLOCKS
|
||||
: ALL_COMPLETION_AVAILABLE_BLOCKS.filter(type => type !== BlockEnum.End)
|
||||
return nodes
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user