2023-12-03 22:10:16 +08:00
|
|
|
import { Plan, type PlanInfo, Priority } from '@/app/components/billing/type'
|
|
|
|
|
|
|
|
const supportModelProviders = 'OpenAI/Anthropic/Azure OpenAI/ Llama2/Hugging Face/Replicate'
|
|
|
|
|
|
|
|
export const NUM_INFINITE = 99999999
|
|
|
|
|
|
|
|
export const contactSalesUrl = 'mailto:business@dify.ai'
|
|
|
|
|
|
|
|
export const ALL_PLANS: Record<Plan, PlanInfo> = {
|
|
|
|
sandbox: {
|
|
|
|
level: 1,
|
|
|
|
price: 0,
|
|
|
|
modelProviders: supportModelProviders,
|
|
|
|
teamMembers: 1,
|
|
|
|
buildApps: 10,
|
2023-12-13 16:41:40 +08:00
|
|
|
vectorSpace: 5,
|
2023-12-03 22:10:16 +08:00
|
|
|
documentProcessingPriority: Priority.standard,
|
|
|
|
logHistory: 30,
|
2023-12-13 16:41:40 +08:00
|
|
|
messageRequest: 500,
|
|
|
|
annotatedResponse: 10,
|
2023-12-03 22:10:16 +08:00
|
|
|
},
|
|
|
|
professional: {
|
|
|
|
level: 2,
|
|
|
|
price: 59,
|
|
|
|
modelProviders: supportModelProviders,
|
|
|
|
teamMembers: 3,
|
|
|
|
buildApps: 50,
|
|
|
|
vectorSpace: 200,
|
|
|
|
documentProcessingPriority: Priority.priority,
|
|
|
|
logHistory: NUM_INFINITE,
|
2023-12-13 16:41:40 +08:00
|
|
|
messageRequest: NUM_INFINITE,
|
|
|
|
annotatedResponse: 2000,
|
2023-12-03 22:10:16 +08:00
|
|
|
},
|
|
|
|
team: {
|
|
|
|
level: 3,
|
|
|
|
price: 159,
|
|
|
|
modelProviders: supportModelProviders,
|
|
|
|
teamMembers: NUM_INFINITE,
|
|
|
|
buildApps: NUM_INFINITE,
|
|
|
|
vectorSpace: 1000,
|
|
|
|
documentProcessingPriority: Priority.topPriority,
|
|
|
|
logHistory: NUM_INFINITE,
|
2023-12-13 16:41:40 +08:00
|
|
|
messageRequest: NUM_INFINITE,
|
|
|
|
annotatedResponse: 5000,
|
2023-12-03 22:10:16 +08:00
|
|
|
},
|
|
|
|
enterprise: {
|
|
|
|
level: 4,
|
|
|
|
price: 0,
|
|
|
|
modelProviders: supportModelProviders,
|
|
|
|
teamMembers: NUM_INFINITE,
|
|
|
|
buildApps: NUM_INFINITE,
|
|
|
|
vectorSpace: NUM_INFINITE,
|
|
|
|
documentProcessingPriority: Priority.topPriority,
|
|
|
|
logHistory: NUM_INFINITE,
|
2023-12-13 16:41:40 +08:00
|
|
|
messageRequest: NUM_INFINITE,
|
|
|
|
annotatedResponse: NUM_INFINITE,
|
2023-12-03 22:10:16 +08:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const defaultPlan = {
|
|
|
|
type: Plan.sandbox,
|
|
|
|
usage: {
|
|
|
|
vectorSpace: 1,
|
|
|
|
buildApps: 1,
|
|
|
|
teamMembers: 1,
|
2023-12-18 15:41:24 +08:00
|
|
|
annotatedResponse: 1,
|
2023-12-03 22:10:16 +08:00
|
|
|
},
|
|
|
|
total: {
|
|
|
|
vectorSpace: 10,
|
|
|
|
buildApps: 10,
|
|
|
|
teamMembers: 1,
|
2023-12-18 15:41:24 +08:00
|
|
|
annotatedResponse: 10,
|
2023-12-03 22:10:16 +08:00
|
|
|
},
|
|
|
|
}
|