mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
Add condition to skip initializing web scraper nodes during prediction
This commit is contained in:
@@ -328,6 +328,14 @@ export const buildLangchain = async (
|
||||
logger.debug(`[server]: Finished upserting ${reactFlowNode.data.label} (${reactFlowNode.data.id})`)
|
||||
break
|
||||
} else {
|
||||
// skip initializing web scraper nodes during prediction since they would have already run as a part of upsert
|
||||
if (
|
||||
reactFlowNode.data.name === 'cheerioWebScraper' ||
|
||||
reactFlowNode.data.name === 'playwrightWebScraper' ||
|
||||
reactFlowNode.data.name === 'puppeteerWebScraper'
|
||||
) {
|
||||
continue
|
||||
}
|
||||
logger.debug(`[server]: Initializing ${reactFlowNode.data.label} (${reactFlowNode.data.id})`)
|
||||
let outputResult = await newNodeInstance.init(reactFlowNodeData, question, {
|
||||
chatId,
|
||||
|
||||
Reference in New Issue
Block a user