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

Function validateChatflowType

packages/server/src/services/chatflows/index.ts:44–47  ·  view source on GitHub ↗
(type: ChatflowType | undefined)

Source from the content-addressed store, hash-verified

42}
43
44export function validateChatflowType(type: ChatflowType | undefined) {
45 if (!Object.values(EnumChatflowType).includes(type as EnumChatflowType))
46 throw new InternalFlowiseError(StatusCodes.BAD_REQUEST, ChatflowErrorMessage.INVALID_CHATFLOW_TYPE)
47}
48
49// Check if chatflow valid for streaming
50const checkIfChatflowIsValidForStreaming = async (chatflowId: string): Promise<any> => {

Callers 2

saveChatflowFunction · 0.85
updateChatflowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected