(req: Request, chatType?: ChatType)
| 6 | import { getErrorMessage } from '../../errors/utils' |
| 7 | |
| 8 | const 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 | |
| 20 | export default { |
| 21 | buildChatflow |
nothing calls this directly
no test coverage detected