MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / buildChatflow

Function buildChatflow

packages/server/src/services/predictions/index.ts:8–18  ·  view source on GitHub ↗
(req: Request, chatType?: ChatType)

Source from the content-addressed store, hash-verified

6import { getErrorMessage } from '../../errors/utils'
7
8const buildChatflow = async (req: Request, chatType?: ChatType) => {
9 try {
10 const dbResponse = await utilBuildChatflow(req, false, chatType)
11 return dbResponse
12 } catch (error) {
13 throw new InternalFlowiseError(
14 StatusCodes.INTERNAL_SERVER_ERROR,
15 `Error: predictionsServices.buildChatflow - ${getErrorMessage(error)}`
16 )
17 }
18}
19
20export default {
21 buildChatflow

Callers

nothing calls this directly

Calls 2

utilBuildChatflowFunction · 0.90
getErrorMessageFunction · 0.90

Tested by

no test coverage detected