(type: ChatflowType | undefined)
| 42 | } |
| 43 | |
| 44 | export 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 |
| 50 | const checkIfChatflowIsValidForStreaming = async (chatflowId: string): Promise<any> => { |
no outgoing calls
no test coverage detected