answer node

This commit is contained in:
StyleZhang
2024-03-19 14:50:07 +08:00
parent 0b7cdd1e5d
commit ced6a5c18b
19 changed files with 68 additions and 41 deletions

View File

@ -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
},