mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-04 10:14:00 +08:00
f26fe2f4d2a3e618866d196f27959de563f9b984
# Conflicts:
# .gitignore
# README.md
# api/.env.example
# api/Dockerfile
# api/commands.py
# api/configs/app_config.py
# api/controllers/console/__init__.py
# api/controllers/console/apikey.py
# api/controllers/console/app/statistic.py
# api/controllers/service_api/app/app.py
# api/controllers/service_api/app/audio.py
# api/controllers/service_api/app/completion.py
# api/controllers/service_api/app/conversation.py
# api/controllers/service_api/app/file.py
# api/controllers/service_api/app/message.py
# api/controllers/service_api/app/workflow.py
# api/controllers/service_api/wraps.py
# api/controllers/web/completion.py
# api/core/app/apps/advanced_chat/app_generator.py
# api/core/app/apps/advanced_chat/generate_task_pipeline.py
# api/core/app/apps/agent_chat/app_generator.py
# api/core/app/apps/workflow/app_generator.py
# api/core/app/apps/workflow/generate_task_pipeline.py
# api/core/app/task_pipeline/workflow_cycle_manage.py
# api/core/helper/code_executor/code_executor.py
# api/core/tools/builtin_tool/providers/code/tools/simple_code.py
# api/core/workflow/nodes/code/code_node.py
# api/docker/entrypoint.sh
# api/events/event_handlers/__init__.py
# api/extensions/ext_celery.py
# api/extensions/ext_commands.py
# api/models/model.py
# api/models/workflow.py
# api/poetry.lock
# api/pyproject.toml
# api/services/app_service.py
# api/services/feature_service.py
# api/services/workspace_service.py
# web/.env.example
# web/Dockerfile
# web/app/(commonLayout)/apps/Apps.tsx
# web/app/components/apps/app-card.tsx
# web/app/components/base/chat/embedded-chatbot/index.tsx
# web/app/components/base/mermaid/index.tsx
# web/app/components/develop/index.tsx
# web/app/components/develop/secret-key/secret-key-modal.tsx
# web/app/components/develop/secret-key/style.module.css
# web/app/components/develop/template/template.zh.mdx
# web/app/components/explore/app-list/index.tsx
# web/app/components/explore/category.tsx
# web/app/components/explore/sidebar/index.tsx
# web/app/components/header/account-dropdown/index.tsx
# web/app/components/header/index.tsx
# web/app/components/share/utils.ts
# web/app/layout.tsx
# web/app/signin/components/mail-and-password-auth.tsx
# web/app/signin/normal-form.tsx
# web/app/signin/page.module.css
# web/context/app-context.tsx
# web/i18n/i18next-config.ts
# web/i18n/ja-JP/login.ts
# web/i18n/ko-KR/login.ts
#
if dify_config.WORKFLOW_LOG_CLEANUP_ENABLED:
# 2:00 AM every day
imports.append("schedule.clean_workflow_runlogs_precise")
beat_schedule["clean_workflow_runlogs_precise"] = {
"task": "schedule.clean_workflow_runlogs_precise.clean_workflow_runlogs_precise",
"schedule": crontab(minute="0", hour="2"),
} web/package.json
# web/pnpm-lock.yaml
# web/types/feature.ts
Dify-Plus
项目介绍
在原有 Dify 的基础中,该项目做了一些二开以及新增了管理中心的功能,原先这些功能只是在我们企业内部使用,对外交流后发现很多伙伴也遇到我们相同一些痛点,故将我们的二开内容进行开源,欢迎大家一起交流。
简而言之:该项目基于 gin-vue-admin 做了 Dify 的管理中心,基于 Dify 做了一些适合企业场景的二开功能。
即 Dify-Plus = 管理中心 + Dify 二开
名字说明
Dify-Plus,该名字不是说比 Dify 项目牛的意思,意思是想说比 Dify 多做了一些针对企业场景多了一些二开的功能而已。
新增功能介绍
一. Dify 二开功能
- 新增:用户额度
- 对话余额限制判断
- 异步计算用户额度逻辑
- 左上角新增使用额度显示
- 新增个人监测页
- 新增:密钥额度设置
- 新增应用 API 调用余额限制判断
- 新增 :Web 公开页登录鉴权
- 新增:管理员同步应用到应用模版
- 新增:后台创建用户,自动邀请进管理员空间
- 新增:可以鉴权的 cookie
- 新增:同步应用到模版中心
- 新增:应用中心页面
- 调整 :默认跳转到应用中心
- 新增:应用使用次数记录、应用中心按照使用次数排序
- 权限调整
- 调整:不允许普通成员关闭模型
- 调整:空间普通成员不渲染“模型供应商”标签
- 调整:非管理员,隐藏密钥显示
- 优化: csv 编码监测,修复批量请求,windows 下载后保存再上传问题
- 优化: markdown 图片放大问题优化
- 新增:钉钉登录
- 新增:sandbox-full,以放开代码执行节点函数限制
二. 管理中心
代码所在目录:/admin
- JWT 与 Dify 打通
- 用户同步
- 用户额度修改
- 费用报表
部分功能页面展示截图
版本更新说明
- 会持续跟随 gin-vue-admin 和 Dify 两个开源项目的版本。
- 为了标志二开的部分,我们特意在注释、文件名、方法名、表名都加上
extend,可通过搜索这个关键字,查看我们二开的代码
整体服务
启动方式(docker-compose)
启动方式(源码)
见文档:部署详细步骤(源码)
用户问的较多的问题
见文档:Q&A
相关配置说明
- Dify 相关配置说明:https://docs.dify.ai/zh-hans/getting-started/install-self-hosted/environments
- 管理中心 相关配置说明:
- Dify-plus 新增环境变量说明
待补充
联系我们
微信交流
-
微信交流群
-
防止广告进群,添加微信,输入以下代码执行结果
encoded_str = "5Yqg5YWlZGlmeS1wbHVz5Lqk5rWB576kMgo="
decoded_bytes = base64.b64decode(encoded_str)
decoded_str = decoded_bytes.decode('utf-8')
print(decoded_str)
备注:微信交流群若加不进去,可添加我们微信,我们拉你进群
请作者喝咖啡~
Star History
License
版权说明:本项目在 Dify 项目基础上进行二开,需要遵守 Dify 的开源协议,如下
This repository is available under the Dify Open Source License, which is essentially Apache 2.0 with a few additional restrictions.
Languages
TypeScript
38.1%
Python
34.2%
JavaScript
21.7%
GO
2.3%
MDX
1.3%
Other
2.3%










