mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-25 07:38:15 +08:00
87 lines
2.2 KiB
TypeScript
87 lines
2.2 KiB
TypeScript
import type { BasicPlan } from '@/app/components/billing/type'
|
|
import { Plan, type PlanInfo, Priority } from '@/app/components/billing/type'
|
|
|
|
const supportModelProviders = 'OpenAI/Anthropic/Llama2/Azure OpenAI/Hugging Face/Replicate'
|
|
|
|
export const NUM_INFINITE = 99999999
|
|
export const contractSales = 'contractSales'
|
|
export const unAvailable = 'unAvailable'
|
|
|
|
export const contactSalesUrl = 'https://vikgc6bnu1s.typeform.com/dify-business'
|
|
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,
|
|
teamWorkspace: 1,
|
|
teamMembers: 1,
|
|
buildApps: 5,
|
|
documents: 50,
|
|
vectorSpace: '50MB',
|
|
documentsUploadQuota: 0,
|
|
documentsRequestQuota: 10,
|
|
apiRateLimit: 5000,
|
|
documentProcessingPriority: Priority.standard,
|
|
messageRequest: 200,
|
|
annotatedResponse: 10,
|
|
logHistory: 30,
|
|
},
|
|
professional: {
|
|
level: 2,
|
|
price: 59,
|
|
modelProviders: supportModelProviders,
|
|
teamWorkspace: 1,
|
|
teamMembers: 3,
|
|
buildApps: 50,
|
|
documents: 500,
|
|
vectorSpace: '5GB',
|
|
documentsUploadQuota: 0,
|
|
documentsRequestQuota: 100,
|
|
apiRateLimit: NUM_INFINITE,
|
|
documentProcessingPriority: Priority.priority,
|
|
messageRequest: 5000,
|
|
annotatedResponse: 2000,
|
|
logHistory: NUM_INFINITE,
|
|
},
|
|
team: {
|
|
level: 3,
|
|
price: 159,
|
|
modelProviders: supportModelProviders,
|
|
teamWorkspace: 1,
|
|
teamMembers: 50,
|
|
buildApps: 200,
|
|
documents: 1000,
|
|
vectorSpace: '20GB',
|
|
documentsUploadQuota: 0,
|
|
documentsRequestQuota: 1000,
|
|
apiRateLimit: NUM_INFINITE,
|
|
documentProcessingPriority: Priority.topPriority,
|
|
messageRequest: 10000,
|
|
annotatedResponse: 5000,
|
|
logHistory: NUM_INFINITE,
|
|
},
|
|
}
|
|
|
|
export const defaultPlan = {
|
|
type: Plan.sandbox as BasicPlan,
|
|
usage: {
|
|
documents: 50,
|
|
vectorSpace: 1,
|
|
buildApps: 1,
|
|
teamMembers: 1,
|
|
annotatedResponse: 1,
|
|
documentsUploadQuota: 0,
|
|
},
|
|
total: {
|
|
documents: 50,
|
|
vectorSpace: 10,
|
|
buildApps: 10,
|
|
teamMembers: 1,
|
|
annotatedResponse: 10,
|
|
documentsUploadQuota: 0,
|
|
},
|
|
}
|