config.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import { Plan, type PlanInfo, Priority } from '@/app/components/billing/type'
  2. const supportModelProviders = 'OpenAI/Anthropic/Azure OpenAI/ Llama2/Hugging Face/Replicate'
  3. export const NUM_INFINITE = 99999999
  4. export const contractSales = 'contractSales'
  5. export const unAvailable = 'unAvailable'
  6. export const contactSalesUrl = 'mailto:business@dify.ai'
  7. export const ALL_PLANS: Record<Plan, PlanInfo> = {
  8. sandbox: {
  9. level: 1,
  10. price: 0,
  11. modelProviders: supportModelProviders,
  12. teamMembers: 1,
  13. buildApps: 10,
  14. vectorSpace: 5,
  15. documentsUploadQuota: 50,
  16. documentProcessingPriority: Priority.standard,
  17. logHistory: 30,
  18. customTools: unAvailable,
  19. messageRequest: {
  20. en: '200 messages',
  21. zh: '200 条信息',
  22. },
  23. annotatedResponse: 10,
  24. },
  25. professional: {
  26. level: 2,
  27. price: 59,
  28. modelProviders: supportModelProviders,
  29. teamMembers: 3,
  30. buildApps: 50,
  31. vectorSpace: 200,
  32. documentsUploadQuota: 500,
  33. documentProcessingPriority: Priority.priority,
  34. logHistory: NUM_INFINITE,
  35. customTools: 10,
  36. messageRequest: {
  37. en: '5,000 messages/month',
  38. zh: '5,000 条信息/月',
  39. },
  40. annotatedResponse: 2000,
  41. },
  42. team: {
  43. level: 3,
  44. price: 159,
  45. modelProviders: supportModelProviders,
  46. teamMembers: NUM_INFINITE,
  47. buildApps: NUM_INFINITE,
  48. vectorSpace: 1000,
  49. documentsUploadQuota: 1000,
  50. documentProcessingPriority: Priority.topPriority,
  51. logHistory: NUM_INFINITE,
  52. customTools: NUM_INFINITE,
  53. messageRequest: {
  54. en: '10,000 messages/month',
  55. zh: '10,000 条信息/月',
  56. },
  57. annotatedResponse: 5000,
  58. },
  59. enterprise: {
  60. level: 4,
  61. price: 0,
  62. modelProviders: supportModelProviders,
  63. teamMembers: NUM_INFINITE,
  64. buildApps: NUM_INFINITE,
  65. vectorSpace: NUM_INFINITE,
  66. documentsUploadQuota: NUM_INFINITE,
  67. documentProcessingPriority: Priority.topPriority,
  68. logHistory: NUM_INFINITE,
  69. customTools: NUM_INFINITE,
  70. messageRequest: {
  71. en: contractSales,
  72. zh: contractSales,
  73. },
  74. annotatedResponse: NUM_INFINITE,
  75. },
  76. }
  77. export const defaultPlan = {
  78. type: Plan.sandbox,
  79. usage: {
  80. vectorSpace: 1,
  81. buildApps: 1,
  82. teamMembers: 1,
  83. annotatedResponse: 1,
  84. documentsUploadQuota: 1,
  85. },
  86. total: {
  87. vectorSpace: 10,
  88. buildApps: 10,
  89. teamMembers: 1,
  90. annotatedResponse: 10,
  91. documentsUploadQuota: 50,
  92. },
  93. }