update wordings

This commit is contained in:
Henry
2024-02-20 01:32:21 +08:00
parent 13c97d2f59
commit 6c1f0f7330
7 changed files with 19 additions and 13 deletions
+4 -4
View File
@@ -26,7 +26,7 @@ import {
import {
getNodeModulesPackagePath,
getStartingNodes,
buildLangchain,
buildFlow,
getEndingNodes,
constructGraphs,
resolveVariables,
@@ -441,7 +441,7 @@ export class App {
// chatFlowPool is initialized only when a flow is opened
// if the user attempts to rename/update category without opening any flow, chatFlowPool will be undefined
if (this.chatflowPool) {
// Update chatflowpool inSync to false, to build Langchain again because data has been changed
// Update chatflowpool inSync to false, to build flow from scratch again because data has been changed
this.chatflowPool.updateInSync(chatflow.id, false)
}
@@ -1570,7 +1570,7 @@ export class App {
const { startingNodeIds, depthQueue } = getStartingNodes(filteredGraph, stopNodeId)
await buildLangchain(
await buildFlow(
startingNodeIds,
nodes,
edges,
@@ -1787,7 +1787,7 @@ export class App {
logger.debug(`[server]: Start building chatflow ${chatflowid}`)
/*** BFS to traverse from Starting Nodes to Ending Node ***/
const reactFlowNodes = await buildLangchain(
const reactFlowNodes = await buildFlow(
startingNodeIds,
nodes,
edges,
+1 -1
View File
@@ -263,7 +263,7 @@ export const getEndingNodes = (nodeDependencies: INodeDependencies, graph: INode
* @param {ICommonObject} overrideConfig
* @param {CachePool} cachePool
*/
export const buildLangchain = async (
export const buildFlow = async (
startingNodeIds: string[],
reactFlowNodes: IReactFlowNode[],
reactFlowEdges: IReactFlowEdge[],