SuperAPI AI Directory

Dify-Plus - Enterprise-grade enhanced project based on secondary development of Dify

Author: AI小集 · Original source: AI工具集

What is Dify-Plus

Dify-Plus is an enterprise-grade enhanced project based on secondary development of Dify , integrating an admin center based on gin-vue-admin. Dify-Plus adds features such as user quotas, key quotas, Web public page login authentication, and an app center on top of Dify. It optimizes permission management and is suitable for enterprise scenarios. The Dify-Plus project is open source, addresses industry pain points, and is suitable for users who need refined resource management in enterprise scenarios.

Dify-Plus

Main features of Dify-Plus

  • User quota management:
    • Conversation balance limit: Limits the number of times a user can use conversations.
    • Asynchronous calculation of user quotas: Processes the calculation logic of user quotas asynchronously in the background.
    • Quota display: Displays the user's usage quota in the upper-left corner of the interface.
    • Personal monitoring page: Users can view their own quota usage.
  • Key management:
    • Key quota settings: Limits the balance for application API calls.
    • Key usage analysis: Provides analysis and reports on key usage.
    • Monthly key quota spending: Tracks the monthly usage cost of keys.
  • Security management:
    • Web public page login authentication: Ensures that only authorized users can access.
    • Authentication Cookie: Supports a secure Cookie authentication mechanism.
  • Application management:
    • App center page: Centrally manages all applications.
    • Application usage count records: Records the usage count of each application and sorts by usage count.
    • Sync applications to the template center: Administrators can sync applications to the template center.
  • Admin center:
    • User synchronization: Syncs user information to the admin center.
    • Model synchronization workspace: Syncs models to the workspace.
    • User quota modification: Administrators modify user quotas.
  • Expense reports: Generates expense reports to facilitate financial management and analysis.
  • Permission management:
    • Permission adjustments: Regular members cannot disable models, and non-administrators cannot view keys.
    • Optimized CSV encoding detection: Fixes batch request issues and supports saving after download on Windows before uploading again.
    • Markdown image zoom optimization: Improves user experience.

Technical principles of Dify-Plus

  • Admin center based on gin-vue-admin:
    • Frontend: Builds a modern user interface based on Vue.js, providing a good user experience.
    • Backend: Builds efficient backend services using the Gin framework in the Go language.
    • JWT authentication: Implements user authentication and authorization based on JSON Web Tokens (JWT) to ensure system security.
  • Integration with Dify: Interact with Dify based on RESTful API to enable feature expansion. Synchronize user, model, and application data to ensure data consistency between the management center and Dify.
  • Asynchronous processing: Use asynchronous tasks to handle time-consuming operations such as user quota calculation to improve system performance.

Dify-Plus project address

Dify-Plus application scenarios

  • Enterprise resource management: Based on user quota and key quota management, allocate resources reasonably and avoid abuse.
  • Application development and management: Centrally manage applications and support synchronizing applications to the template center for easy reuse.
  • Security management: Provide Web login authentication and a secure Cookie authentication mechanism to ensure access security.
  • Data analysis and reporting: Generate cost reports and key usage analysis to help enterprises optimize costs and operations.
  • Team collaboration and permission management: Assign permissions based on roles and synchronize user information to facilitate team collaboration.