Commit Graph

624 Commits

Author SHA1 Message Date
CaptainB decd060304 chore: adjust default worker count calculation in command.py
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-11 20:41:55 +08:00
liqiang-fit2cloud 324f836fdd refactor: never restart core worker if worker=1. 2025-11-11 18:13:21 +08:00
liqiang-fit2cloud ad1742fd0f refactor: delete .SANDBOX_BANNED_HOSTS file if SANDBOX_PYTHON_BANNED_KEYWORDS is empty/ 2025-11-10 09:39:54 +08:00
CaptainB 42d91e232b refactor: remove scheduler service and related code 2025-11-07 21:02:27 +08:00
liqiang-fit2cloud f9c1742b43 refactor: change model path in MKTokenizer. 2025-11-07 14:57:04 +08:00
shaohuzhang1 3f6453eb3a
feat: Using the HuggingFace tokenizer (#4329) 2025-11-07 13:29:17 +08:00
liqiang-fit2cloud fa0cd61584 fix: ensure worker count is properly converted to integer for max_requests 2025-11-07 11:18:02 +08:00
liqiang-fit2cloud 180ee40cdc refactor: set MAXKB_SANDBOX_HOME env. 2025-11-07 11:10:14 +08:00
CaptainB fe7d75d720 fix: ensure worker count is properly converted to integer for max_requests 2025-11-07 10:33:06 +08:00
CaptainB 6b8a9bdc74 fix: correct parameter name for graceful timeout in Gunicorn configuration 2025-11-07 10:19:40 +08:00
liqiang-fit2cloud 7a4594db66 refactor: set timeout for workers. 2025-11-07 10:13:24 +08:00
liqiang-fit2cloud 207a67dcc2 refactor: never restart scheduler worker if worker=1. 2025-11-07 10:04:16 +08:00
liqiang-fit2cloud ea2c2f9e2b refactor: never restart local_model worker if LOCAL_MODEL_HOST_WORKER=1. 2025-11-07 09:58:15 +08:00
liqiang-fit2cloud ff570a3c71 refactor: read SANDBOX_BANNED_HOSTS from file instead of env. 2025-11-07 09:47:35 +08:00
CaptainB 806393f28c fix: update globals_v initialization to use an empty dictionary in tool_code.py 2025-11-06 17:18:23 +08:00
liqiang-fit2cloud 0bd9e170fb Merge remote-tracking branch 'origin/v2' into v2 2025-11-06 16:52:57 +08:00
liqiang-fit2cloud c1fbb41aa5 refactor: forbidden access by hostname or docker ip. 2025-11-06 16:52:47 +08:00
shaohuzhang1 8cabf823e8
fix: dependency package (#4325)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-06 16:46:20 +08:00
liqiang-fit2cloud f0ecad6de1 refactor: rename MAXKB_SANDBOX_PYTHON_ALLOW_HOSTS_REGEXES to MAXKB_SANDBOX_PYTHON_BANNED_HOSTS 2025-11-06 15:41:35 +08:00
liqiang-fit2cloud 3ab17c61ff Merge remote-tracking branch 'origin/v2' into v2 2025-11-06 11:23:20 +08:00
liqiang-fit2cloud 6e39df454c refactor: rename MAXKB_SANDBOX_PYTHON_ALLOW_HOSTS_REGEXES to MAXKB_SANDBOX_PYTHON_ALLOW_HOST_REGEXES 2025-11-06 11:23:09 +08:00
shaohuzhang1 8a0a807763
fix: Set the startup environment variables (#4322) 2025-11-06 11:22:36 +08:00
CaptainB 6ac10785c9 fix: set environment variables for LD_PRELOAD and SANDBOX_ALLOW_HOSTS_REGEXES in sandbox execution 2025-11-06 11:10:37 +08:00
liqiang-fit2cloud 9029240931 refactor: rename MAXKB_SANDBOX_PYTHON_BANNED_HOSTS to MAXKB_SANDBOX_PYTHON_ALLOW_HOSTS_REGEXES 2025-11-06 11:03:48 +08:00
shaohuzhang1 88fc5dd398
fix: Set the startup environment variables (#4321) 2025-11-06 10:31:14 +08:00
CaptainB bb7dfbc2fe fix: set environment variables for banned hosts and preload library in sandbox execution
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-05 21:19:53 +08:00
shaohuzhang1 a8d0729e65
perf: Memory optimization (#4318) 2025-11-05 19:05:26 +08:00
liqiang-fit2cloud 1f4d6d1123 feat: add MAXKB_SANDBOX_PYTHON_BANNED_HOSTS env to ban host for sandbox in tools code. 2025-11-05 19:03:17 +08:00
liqiang-fit2cloud f0be269cdc feat: add MAXKB_SANDBOX_PYTHON_BANNED_HOSTS env to ban host for sandbox in tools code. 2025-11-05 18:44:57 +08:00
liqiang-fit2cloud b7152867a3 feat: add MAXKB_SANDBOX_PYTHON_BANNED_HOSTS env to ban host for sandbox in tools code. 2025-11-05 16:55:29 +08:00
liqiang-fit2cloud 9971df1a02 feat: add MAXKB_SANDBOX_PYTHON_BANNED_HOSTS env to ban host for sandbox in tools code. 2025-11-05 16:43:17 +08:00
CaptainB a30d0d07d1 revert: add Gunicorn preload option and initialize shared resources
This reverts commit 1af14bdb27.
2025-11-05 16:39:54 +08:00
CaptainB 2a64d281ab fix: add empty environment variable dictionary for subprocess execution
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-05 12:45:31 +08:00
CaptainB 1af14bdb27 feat: add Gunicorn preload option and initialize shared resources 2025-11-05 12:38:00 +08:00
liqiang-fit2cloud d9b7810cc8 fix: remove env from sandbox. 2025-11-05 12:37:46 +08:00
CaptainB ddc60dd1c3 revert: add subprocess handling for local model and conditional post handler execution
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
This reverts commit 8e3550eb83.
2025-11-04 19:25:56 +08:00
CaptainB 8e3550eb83 feat: add subprocess handling for local model and conditional post handler execution 2025-11-04 14:19:06 +08:00
liqiang-fit2cloud 8c788bf785 perf: revert preload. 2025-11-04 09:31:27 +08:00
wangxuhui 57195f277a
fix(permission): 修复权限常量解析操作符索引错误 (#4275)
- 修正了权限字符串解析时操作符索引,从原来的第三部分改为第二部分
- 确保权限实例创建时操作符获取正确
- 改善权限常量解析的准确性和稳定性

Co-authored-by: 王旭辉 <2569429256@qq.com>
2025-10-28 18:31:31 +08:00
CaptainB d147b794ce chore: replace split_text with smart_split_paragraph in pdf_split_handle.py 2025-10-27 14:23:42 +08:00
liqiang-fit2cloud af5d0dcb9f perf: try to reduce memory usage by adding --preload argument for multi workers. 2025-10-23 10:25:25 +08:00
liqiang-fit2cloud c5aa570482 perf: try to reduce memory usage by decreasing default core workers to 2. 2025-10-23 10:20:05 +08:00
shaohuzhang1 b36e8f5350
perf: Optimize the export of conversation logs (#4230) 2025-10-22 14:53:42 +08:00
zhangzhanwei 4648f08f98 feat: About permission
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-10-22 14:13:49 +08:00
zhangzhanwei 4487964d17 feat: Replace source file permission 2025-10-22 11:25:11 +08:00
zhangzhanwei c0ae78411e feat: Tag permission interface 2025-10-22 10:18:41 +08:00
CaptainB da7f0edecd refactor: configure logging levels for mcp and mcp.server 2025-10-21 17:59:25 +08:00
wxg0103 39aaee8e02 fix: handle empty message case in common.py and update username regex validation in user.py
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-10-20 18:42:55 +08:00
CaptainB c47c70afb0 feat: implement knowledge tag management functionality 2025-10-15 11:35:34 +08:00
zhangzhanwei 89749a3006 feat: Folder authorization backend 2025-10-14 16:33:13 +08:00