MCPcopy
hub / github.com/FlowiseAI/Flowise / upsertVectorMiddleware

Function upsertVectorMiddleware

packages/server/src/services/vectors/index.ts:7–13  ·  view source on GitHub ↗
(req: Request, isInternal: boolean = false)

Source from the content-addressed store, hash-verified

5import { getErrorMessage } from '../../errors/utils'
6
7const upsertVectorMiddleware = async (req: Request, isInternal: boolean = false) => {
8 try {
9 return await upsertVector(req, isInternal)
10 } catch (error) {
11 throw new InternalFlowiseError(StatusCodes.INTERNAL_SERVER_ERROR, `Error: vectorsService.upsertVector - ${getErrorMessage(error)}`)
12 }
13}
14
15export default {
16 upsertVectorMiddleware

Callers

nothing calls this directly

Calls 2

upsertVectorFunction · 0.90
getErrorMessageFunction · 0.90

Tested by

no test coverage detected