Strip tags from top-level nodes when inserting templates

This commit is contained in:
space-nuko
2023-05-26 16:06:54 -05:00
parent eb335e9be7
commit 60bd989915
4 changed files with 23 additions and 3 deletions

View File

@@ -144,8 +144,9 @@
if (entry.extraData?.workflowTitle != null) {
message = `${entry.extraData.workflowTitle}`
}
if (subgraphs?.length > 0)
message += ` (${subgraphs.join(', ')})`
const subgraphsString = subgraphs.join(', ')
if (subgraphsString.length > 0)
message += ` (${subgraphsString})`
let submessage = `Nodes: ${Object.keys(entry.prompt).length}`