Guangdong Liu
285291f545
refactor: update API routes and documentation for console endpoints (#25554)
1 månad sedan
QuantumGhost
874406d934
security(api): fix privilege escalation vulnerability in model config and chat message APIs (#25518)
The `ChatMessageApi` (`POST /console/api/apps/{app_id}/chat-messages`) and
`ModelConfigResource` (`POST /console/api/apps/{app_id}/model-config`)
endpoints do not properly validate user permissions, allowing users without `editor`
permission to access restricted functionality.
This PR addresses this issue by adding proper permission check.
1 månad sedan
-LAN-
08dd3f7b50
Fix basedpyright type errors (#25435)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 månad sedan
Yongtao Huang
fa753239ad
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>
2 månader sedan
Asuka Minato
18dce66443
try flask_restful -> flask_restx (#24310)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2 månader sedan
heyszt
aa71173dbb
Feat: External_trace_id compatible with OpenTelemetry (#23918)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2 månader sedan
Bowen Liang
8537abfff8
chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions (#19224)
6 månader sedan
Yingchun Lai
c135967e59
refactor: simplify some exception catch code (#12246)
10 månader sedan
yihong
56e15d09a9
feat: mypy for all type check (#10921)
10 månader sedan
-LAN-
9ac2bb30f4
Feat/add-remote-file-upload-api (#9906)
1 år sedan
Hash Brown
8c51d06222
feat: regenerate in `Chat`, `agent` and `Chatflow` app (#7661)
1 år sedan
Jyong
1473083a41
catch openai rate limit error (#7658)
1 år sedan
-LAN-
13be84e4d4
chore(api/controllers): Apply Ruff Formatter. (#7645)
1 år sedan
liuzhenghua
9622fbb62f
feat: app rate limit (#5844)
Co-authored-by: liuzhenghua-jk <liuzhenghua-jk@360shuke.com>
Co-authored-by: takatost <takatost@gmail.com>
1 år sedan
takatost
7753ba2d37
FEAT: NEW WORKFLOW ENGINE (#3160)
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Yeuoly <admin@srmxy.cn>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: jyong <jyong@dify.ai>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: jyong <718720800@qq.com>
1 år sedan
Bowen Liang
063191889d
chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version (#2419)
1 år sedan
Bowen Liang
843280f82b
enhancement: introduce Ruff for Python linter for reordering and removing unused imports with automated pre-commit and sytle check (#2366)
1 år sedan
takatost
1a6ad05a23
feat: service api add llm usage (#2051)
1 år sedan
Bowen Liang
cc9e74123c
improve: introduce isort for linting Python imports (#1983)
1 år sedan
takatost
b88a8f7bb1
feat: optimize invoke errors (#1922)
1 år sedan
takatost
d069c668f8
Model Runtime (#1858)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
Co-authored-by: chenhe <guchenhe@gmail.com>
Co-authored-by: jyong <jyong@dify.ai>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Yeuoly <admin@srmxy.cn>
1 år sedan
Yeuoly
d3a2c0ed34
fix wrong syntax of type definitions (#1678)
1 år sedan
takatost
41d0a8b295
feat: [backend] vision support (#1510)
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
2 år sedan
takatost
024250803a
feat: move login_required wrapper outside (#1281)
2 år sedan
Jyong
642842d61b
Feat:dataset retiever resource (#1123)
Co-authored-by: jyong <jyong@dify.ai>
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
2 år sedan
Joel
2d5ad0d208
feat: support optional query content (#1097)
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
2 år sedan
Jyong
4b53bb1a32
Feat/token support (#909)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: jyong <jyong@dify.ai>
2 år sedan
takatost
5fa2161b05
feat: server multi models support (#799)
2 år sedan
John Wang
7599f79a17
feat: claude api support (#572)
2 år sedan
John Wang
db896255d6
Initial commit
2 år sedan