Yeuoly
ec808f3fe8
refactor: centralize default end user session ID constant (#25416)
This PR refactors the handling of the default end user session ID by centralizing it as an enum in the models module where the `EndUser` model is defined. This improves code organization and makes the relationship between the constant and the model clearer.
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
1 month ago
-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 month ago
Asuka Minato
38057b1b0e
add typing to all wraps (#25405)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 month ago
Yeuoly
720ecea737
fix: tenant_id was not specific when retrieval end-user in plugin backwards invocation wraps (#25377)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 month ago
ZalterCitty
4ee49f3550
chore: remove weird account login (#22247)
Co-authored-by: zhuqingchao <zhuqingchao@xiaomi.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
1 month ago
Asuka Minato
f6059ef389
add more typing (#24949)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 month ago
Will
d33dfee8a3
fix: EndUser is not bound to a Session (#25010)
2 months ago
Asuka Minato
d41d4deaac
example enum to StrEnum (#24877)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2 months ago
Bowen Liang
39064197da
chore: cleanup unnecessary mypy suppressions on imports (#24712)
2 months ago
Asuka Minato
18dce66443
try flask_restful -> flask_restx (#24310)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2 months ago
Asuka Minato
ef51678c73
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>
3 months ago
Aryan Raj
ce794335e9
Fix/replace datetime patterns with naive utc now (#22654)
3 months ago
Ganondorf
55a6b330ec
Add get document detail service api (#21700)
Co-authored-by: lizb <lizb@sugon.com>
4 months ago
-LAN-
b357eca307
fix: Copy request context and current user in app generators. (#20240)
Signed-off-by: -LAN- <laipz8200@outlook.com>
5 months ago
Bowen Liang
8537abfff8
chore: avoid repeated type ignore noqa by adding flask_restful and flask_login in mypy import exclusions (#19224)
6 months ago
crazywoola
eb8584613b
fix: Account.query => db.session.query(Account) (#17667)
6 months ago
Jasonfish
fd443941a2
feat(improve-api-endpoints): Added Datasets and Annotation APIs (#12237)
7 months ago
Jyong
9b2a9260ef
Feat/new saas billing (#14996)
7 months ago
Yeuoly
9a417bfc5e
fix: update database query and model definitions (#14415)
8 months ago
EricPan
05a0faff6a
fix: app token's last_used_at can't be updated when last_used_at is null (#12770)
9 months ago
Jyong
9a6b1dc3a1
Revert "Feat/new saas billing" (#12673)
9 months ago
yihong
4e101604c3
fix: ruff check for True if ... else (#12576)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
9 months ago
Jyong
d8f57bf899
Feat/new saas billing (#12591)
9 months ago
-LAN-
0eeacdc80c
refactor: enhance API token validation with session locking and last used timestamp update (#12426)
Signed-off-by: -LAN- <laipz8200@outlook.com>
9 months ago
yihong
56e15d09a9
feat: mypy for all type check (#10921)
10 months ago
Bowen Liang
6c8e208ef3
chore: bump minimum supported Python version to 3.11 (#10386)
11 months ago
Garfield Dai
54b693d5b1
feat: update saas billing hint. (#7760)
1 year ago
-LAN-
13be84e4d4
chore(api/controllers): Apply Ruff Formatter. (#7645)
1 year ago
非法操作
e121788ff5
chore: make the error msg more clear when validate app token (#4919)
Co-authored-by: Jyong <76649700+johnjyong@users.noreply.github.com>
1 year ago
Garfield Dai
4481906be2
Feat/enterprise sso (#3602)
1 year ago
LIU HONGWEI
c227f3d985
feat: Deprecate datetime.utcnow() in favor of datetime.now(timezone.utc).replace(tzinfo=None) for better timezone handling (#3408) (#3416)
1 year ago
Jyong
e12a0c154c
add segment function billing check for SAAS env (#3082)
Co-authored-by: jyong <jyong@dify.ai>
1 year ago
Garfield Dai
8e66b96221
Feat: Add documents limitation (#2662)
1 year ago
takatost
90bdc85f8c
fix: AppParameterApi.get() got an unexpected keyword argument 'end_user' (#2607)
1 year ago
takatost
0828873b52
fix: missing default user for APP service api (#2606)
1 year ago
Bowen Liang
063191889d
chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version (#2419)
1 year ago
Bowen Liang
843280f82b
enhancement: introduce Ruff for Python linter for reordering and removing unused imports with automated pre-commit and sytle check (#2366)
1 year ago
crazywoola
828822243a
fix: multiple rows were found correctly (#2219)
1 year ago
IAMZn
d60f1a5601
fix:determine multiple result exceptions caused by admin (#2211)
Co-authored-by: chenxin <chenxin@limayao.com>
1 year ago
Bowen Liang
e2c89a9487
fix: bypass admin users to use dataset api with API key (#2072)
1 year ago
Bowen Liang
cc9e74123c
improve: introduce isort for linting Python imports (#1983)
1 year ago
Garfield Dai
7b37e05dec
feat: add billing switch. (#1789)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
1 year ago
Garfield Dai
7b8a10f3ea
feat: billing enhancement 20231204 (#1691)
Co-authored-by: jyong <jyong@dify.ai>
1 year ago
takatost
024250803a
feat: move login_required wrapper outside (#1281)
2 years ago
Jyong
46154c6705
Feat/dataset service api (#1245)
Co-authored-by: jyong <jyong@dify.ai>
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
2 years ago
takatost
09ea27f1ee
feat: optimize service api authorization header invalid error (#910)
2 years ago
John Wang
db896255d6
Initial commit
2 years ago