87 lines
2.2 KiB
TypeScript
Raw Normal View History

import type { BasicPlan } from '@/app/components/billing/type'
import { Plan, type PlanInfo, Priority } from '@/app/components/billing/type'
2025-03-06 10:27:13 +08:00
const supportModelProviders = 'OpenAI/Anthropic/Llama2/Azure OpenAI/Hugging Face/Replicate'
export const NUM_INFINITE = 99999999
2024-01-29 17:26:43 +08:00
export const contractSales = 'contractSales'
export const unAvailable = 'unAvailable'
export const contactSalesUrl = 'https://vikgc6bnu1s.typeform.com/dify-business'
2025-03-06 10:27:13 +08:00
export const getStartedWithCommunityUrl = 'https://github.com/langgenius/dify'
export const getWithPremiumUrl = 'https://aws.amazon.com/marketplace/pp/prodview-t22mebxzwjhu6'
export const ALL_PLANS: Record<BasicPlan, PlanInfo> = {
sandbox: {
level: 1,
price: 0,
modelProviders: supportModelProviders,
2025-03-06 10:27:13 +08:00
teamWorkspace: 1,
teamMembers: 1,
2025-03-06 10:27:13 +08:00
buildApps: 5,
documents: 50,
vectorSpace: '50MB',
documentsUploadQuota: 0,
documentsRequestQuota: 10,
apiRateLimit: 5000,
documentProcessingPriority: Priority.standard,
2025-03-06 10:27:13 +08:00
messageRequest: 200,
2023-12-13 16:41:40 +08:00
annotatedResponse: 10,
2025-03-06 10:27:13 +08:00
logHistory: 30,
},
professional: {
level: 2,
price: 59,
modelProviders: supportModelProviders,
2025-03-06 10:27:13 +08:00
teamWorkspace: 1,
teamMembers: 3,
buildApps: 50,
2025-03-06 10:27:13 +08:00
documents: 500,
vectorSpace: '5GB',
documentsUploadQuota: 0,
documentsRequestQuota: 100,
apiRateLimit: NUM_INFINITE,
documentProcessingPriority: Priority.priority,
2025-03-06 10:27:13 +08:00
messageRequest: 5000,
2023-12-13 16:41:40 +08:00
annotatedResponse: 2000,
2025-03-06 10:27:13 +08:00
logHistory: NUM_INFINITE,
},
team: {
level: 3,
price: 159,
modelProviders: supportModelProviders,
2025-03-06 10:27:13 +08:00
teamWorkspace: 1,
teamMembers: 50,
buildApps: 200,
documents: 1000,
vectorSpace: '20GB',
documentsUploadQuota: 0,
documentsRequestQuota: 1000,
apiRateLimit: NUM_INFINITE,
documentProcessingPriority: Priority.topPriority,
2025-03-06 10:27:13 +08:00
messageRequest: 10000,
2023-12-13 16:41:40 +08:00
annotatedResponse: 5000,
logHistory: NUM_INFINITE,
},
}
export const defaultPlan = {
type: Plan.sandbox as BasicPlan,
usage: {
2025-03-06 10:27:13 +08:00
documents: 50,
vectorSpace: 1,
buildApps: 1,
teamMembers: 1,
annotatedResponse: 1,
2025-03-06 10:27:13 +08:00
documentsUploadQuota: 0,
},
total: {
2025-03-06 10:27:13 +08:00
documents: 50,
vectorSpace: 10,
buildApps: 10,
teamMembers: 1,
annotatedResponse: 10,
2025-03-06 10:27:13 +08:00
documentsUploadQuota: 0,
},
}