dify
This commit is contained in:
10
dify/web/service/utils.ts
Normal file
10
dify/web/service/utils.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { FlowType } from '@/types/common'
|
||||
|
||||
export const flowPrefixMap = {
|
||||
[FlowType.appFlow]: 'apps',
|
||||
[FlowType.ragPipeline]: 'rag/pipelines',
|
||||
}
|
||||
|
||||
export const getFlowPrefix = (type?: FlowType) => {
|
||||
return flowPrefixMap[type!] || flowPrefixMap[FlowType.appFlow]
|
||||
}
|
||||
Reference in New Issue
Block a user