npc0-hue
17832f2424
fix: Dify 1.8.1问题修复
...
本次提交整合了多个功能改进和问题修复:
主要功能:
- 批量工作流处理功能完善,支持 Excel 上传和进度跟踪
- 管理中心反向代理和转发配置优化
- 用户同步添加互斥锁,防止并发问题
- 计费系统和额度显示优化
- AI 绘图功能扩展
前端改进:
- 文本生成应用显示修复
- 批量任务进度展示优化
- 按钮样式和 CSS 优化,禁止换行
- 多语言支持完善(新增印尼语等)
- 构建镜像逻辑优化
- 批量处理进度管理器实现
后端改进:
- Docker Compose 配置升级
- 队列任务和 Worker Pool 优化
- Admin API 初始化和验证逻辑改进
- 数据库迁移和初始化完善
- 静态变量处理优化
- URL 签名助手实现
- Celery 扩展优化
- 代码和导入包问题修复(idea 自动调整代码位置)
技术改进:
- 兼容性修复 (flask-restx, jschardet)
- 钉钉 Web API 版本更新
- 代码格式化和导入包问题修复
- 日志处理优化
- 工作流循环管理优化
Docker 相关:
- Nginx 配置更新
- 容器启动脚本优化
- 镜像构建流程改进
- docker-compose.dify-plus.yaml 大幅更新
管理后台:
- 工作流批量处理 API 实现
- 工作池初始化
- 批量工作流服务实现
- 转发扩展配置
- 用户服务扩展
2025-10-17 23:04:25 +08:00
npc0-hue
f26fe2f4d2
Merge tag '1.8.1' into merge-tag-1.8.1
...
# 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
2025-09-25 15:55:13 +08:00
湛露先生
7a01b3cd36
clean console apis and rag cleans. ( #25042 )
...
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-03 11:25:18 +08:00
Will
99f57f5954
fix: EndUser is not bound to a Session ( #25010 )
2025-09-02 21:37:21 +08:00
Bowen Liang
e91a9f8935
chore: cleanup unnecessary mypy suppressions on imports ( #24712 )
2025-08-28 23:17:25 +08:00
Guangdong Liu
b62f8a12ca
refactor: Migrate part of the web API module to Flask-RESTX ( #24659 )
2025-08-28 09:22:31 +08:00
Guangdong Liu
bc4369ef86
feat: migrate part of the web chat module to Flask-RESTX ( #24664 )
2025-08-28 09:21:42 +08:00
Guangdong Liu
4731a55af6
feat: migrate part of the web API module to Flask-RESTX ( #24577 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-27 16:05:22 +08:00
Yongtao Huang
76ce0afec0
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com >
2025-08-26 18:10:31 +08:00
-LAN-
2836e9bc27
fix: standardize authentication error messages to prevent user enumeration ( #24324 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-26 09:46:23 +08:00
Yongtao Huang
e54471ec78
Fix auth error handling ( #24420 )
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com >
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com >
2025-08-25 09:28:10 +08:00
Asuka Minato
a864ed1985
try flask_restful -> flask_restx ( #24310 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
2025-08-24 13:45:47 +08:00
Yongtao Huang
0fb7a2b4c4
Restructure the File errors in controller ( #23801 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-13 17:06:07 +08:00
Yongtao Huang
cceeeb5f34
Fix bare raise in if blocks ( #23671 )
...
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com >
2025-08-09 22:40:55 +08:00
Yongtao Huang
ec93cc7713
Chore: remove unused variable pruned_memory ( #23514 )
2025-08-07 09:06:17 +08:00
Yongtao Huang
fe215b8318
Refactor: remove redundant full module paths in exception handlers ( #23076 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-29 09:40:51 +08:00
Asuka Minato
8b2d7fc78e
orm filter -> where ( #22801 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-24 00:57:45 +08:00
jiangbo721
4dd7cc9930
fix: Before publish the app, preview the voice of tts, it raise an er… ( #21821 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com >
2025-07-03 10:53:14 +08:00
QuantumGhost
4e7ba9c0b6
feat: Persist Variables for Enhanced Debugging Workflow ( #20699 )
...
This pull request introduces a feature aimed at improving the debugging experience during workflow editing. With the addition of variable persistence, the system will automatically retain the output variables from previously executed nodes. These persisted variables can then be reused when debugging subsequent nodes, eliminating the need for repetitive manual input.
By streamlining this aspect of the workflow, the feature minimizes user errors and significantly reduces debugging effort, offering a smoother and more efficient experience.
Key highlights of this change:
- Automatic persistence of output variables for executed nodes.
- Reuse of persisted variables to simplify input steps for nodes requiring them (e.g., `code`, `template`, `variable_assigner`).
- Enhanced debugging experience with reduced friction.
Closes #19735 .
2025-06-24 09:05:29 +08:00
NeatGuyCoding
aa5b38f8e9
[Bug] fix misusing ACCESS_TOKEN_EXPIRE_MINUTES in jwt on exp ( #21030 )
...
Co-authored-by: tech <cto@sb>
2025-06-18 09:37:49 +08:00
Xiyuan Chen
a23afc5846
Feat/webapp verified sso main ( #20494 )
2025-06-09 17:19:53 +09:00
NFish
efa346fa18
E-300 ( #19726 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Hash Brown <hi@xzd.me >
Co-authored-by: crazywoola <427733928@qq.com >
Co-authored-by: GareArc <chen4851@purdue.edu >
Co-authored-by: Byron.wang <byron@dify.ai >
Co-authored-by: Joel <iamjoel007@gmail.com >
Co-authored-by: -LAN- <laipz8200@outlook.com >
Co-authored-by: Garfield Dai <dai.hai@foxmail.com >
Co-authored-by: KVOJJJin <jzongcode@gmail.com >
Co-authored-by: Alexi.F <654973939@qq.com >
Co-authored-by: Xiyuan Chen <52963600+GareArc@users.noreply.github.com >
Co-authored-by: kautsar_masuara <61046989+izon-masuara@users.noreply.github.com >
Co-authored-by: achmad-kautsar <achmad.kautsar@insignia.co.id >
Co-authored-by: Xin Zhang <sjhpzx@gmail.com >
Co-authored-by: kelvintsim <83445753+kelvintsim@users.noreply.github.com >
Co-authored-by: zxhlyh <jasonapring2015@outlook.com >
Co-authored-by: Zixuan Cheng <61724187+Theysua@users.noreply.github.com >
2025-05-20 12:07:50 +08:00
Bowen Liang
5a3baa271f
chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions ( #19224 )
2025-05-06 11:58:49 +08:00
devxing
5d47e2d552
fix: change delete app status code from 204 to 200 ( #18398 )
...
Co-authored-by: devxing <devxing@gmail.com >
Co-authored-by: crazywoola <427733928@qq.com >
2025-04-27 12:12:46 +08:00
Jyong
fe2cbdbffb
fix retrival resource miss in chatflow ( #18307 )
2025-04-17 18:05:15 +08:00
Yeuoly
7f47f9bdc5
feat: fetch app info in plugins ( #18202 )
2025-04-16 20:27:29 +08:00
FamousMai
73e81323fc
合并dify1.2.0版本代码
...
# Conflicts:
# api/controllers/service_api/app/workflow.py
# api/controllers/service_api/wraps.py
# web/.env.example
# web/app/components/share/utils.ts
# web/app/signin/page.module.css
# web/context/debug-configuration.ts
2025-04-09 19:57:08 +08:00
Panpan
24b1a625b3
feat: allow the embedding in websites to customize sys.user_id ( #16062 )
2025-03-31 18:55:42 +08:00
FamousMai
81dbfd6748
feat: 合并dify1.1.3版本
...
# Conflicts:
# README.md
# api/.env.example
# api/controllers/console/__init__.py
# api/controllers/console/apikey.py
# api/controllers/console/explore/completion.py
# api/controllers/console/explore/workflow.py
# api/controllers/service_api/app/workflow.py
# api/controllers/service_api/wraps.py
# api/controllers/web/workflow.py
# api/core/model_runtime/model_providers/bedrock/get_bedrock_client.py
# api/core/model_runtime/model_providers/bedrock/llm/llm.py
# api/core/model_runtime/model_providers/openai_api_compatible/openai_api_compatible.yaml
# api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/text_embedding.py
# api/models/model.py
# api/poetry.lock
# api/pyproject.toml
# web/.env.example
# web/Dockerfile
# web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx
# web/app/components/app/overview/appCard.tsx
# web/app/components/base/chat/chat-with-history/chat-wrapper.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/explore/app-list/index.tsx
# web/app/components/explore/item-operation/index.tsx
# web/app/components/explore/sidebar/app-nav-item/index.tsx
# web/app/components/explore/sidebar/index.tsx
# web/app/components/header/account-setting/index.tsx
# web/app/components/header/index.tsx
# web/app/components/share/text-generation/index.tsx
# web/app/components/tools/provider/detail.tsx
# web/app/layout.tsx
# web/package.json
# web/service/base.ts
# web/yarn.lock
2025-03-28 16:35:13 +08:00
FamousMai
b5aa970766
feat: 新增sandbox-full支持
2025-03-28 15:18:33 +08:00
Yeuoly
c07af5a1a3
feat: tenant app invocations limiter ( #16221 )
2025-03-19 17:24:02 +08:00
jiangbo721
4e7e172ff3
Chore/format code ( #13691 )
...
Co-authored-by: 刘江波 <jiangbo721@163.com >
2025-02-14 13:38:17 +08:00
Hash Brown
c0d0c63592
feat: switch to chat messages before regenerated ( #11301 )
...
Co-authored-by: zuodongxu <192560071+zuodongxu@users.noreply.github.com >
2025-01-31 13:05:10 +08:00
yihong
4e101604c3
fix: ruff check for True if ... else ( #12576 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-01-13 09:38:48 +08:00
Yingchun Lai
c135967e59
refactor: simplify some exception catch code ( #12246 )
2025-01-02 14:25:12 +08:00
-LAN-
5d04638091
feat(message_feedback): add content argument to feedback creation ( #12077 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2024-12-25 18:36:15 +08:00
yihong
1d3f218662
fix: like failed close #12057 ( #12058 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2024-12-25 10:57:52 +08:00
yihong
56e15d09a9
feat: mypy for all type check ( #10921 )
2024-12-24 18:38:51 +08:00
yihong
39df994ff9
fix: create_feedback args are wrong ( #11962 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2024-12-23 09:20:47 +08:00
-LAN-
3d07a94bd7
fix: refactor conversation pagination to use SQLAlchemy session manag… ( #11956 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2024-12-22 10:39:29 +08:00
-LAN-
0b06235527
fix: add RemoteFileUploadError for better error handling in remote fi… ( #11933 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com >
2024-12-21 21:22:57 +08:00
Bowen Liang
51db59622c
chore(lint): cleanup repeated cause exception in logging.exception replaced by helpful message ( #10425 )
2024-11-15 15:41:40 +08:00
-LAN-
823ae03a08
fix(remote-files): fallback to get when remote server not support head method ( #10370 )
2024-11-07 14:35:58 +08:00
luckylhb90
1ccca7cc68
fixed: web api remote urls error ( #10383 )
...
Co-authored-by: hobo.l <hobo.l@binance.com >
2024-11-07 13:55:19 +08:00
-LAN-
6452342222
feat(workflow): add configurable workflow file upload limit ( #10176 )
...
Co-authored-by: JzoNg <jzongcode@gmail.com >
2024-11-04 15:55:34 +08:00
-LAN-
0066531266
fix(api): replace current_user with end_user in file upload ( #10194 )
2024-11-02 17:03:00 +08:00
-LAN-
9ac2bb30f4
Feat/add-remote-file-upload-api ( #9906 )
2024-11-01 15:51:22 +08:00
-LAN-
dd17506078
feat(api): add generic file size limit parameter ( #9812 )
2024-10-25 09:02:06 +08:00
-LAN-
22bb0414a1
feat(parameters): standardize system parameter field types and values ( #9797 )
2024-10-24 21:52:57 +08:00
-LAN-
d6e8290a1c
fix(files): update Content-Length handling for tool and remote files ( #9649 )
2024-10-22 17:24:42 +08:00