mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
answer node
This commit is contained in:
@ -9,7 +9,7 @@ const nodeDefault: NodeDefault<EndNodeType> = {
|
||||
},
|
||||
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