Commit Graph

2382 Commits

Author SHA1 Message Date
liqiang-fit2cloud 91e8e833a9 fix: fix incorrect permission may introduce security vulnerabilities. 2025-11-17 10:59:09 +08:00
CaptainB 37d886e9ed refactor: optimize RSA encryption and decryption functions with caching
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled
2025-11-14 22:15:09 +08:00
shaohuzhang1 23147e5498
perf: Memory optimization (#4362) 2025-11-14 22:08:02 +08:00
zhangzhanwei f3350980c7 perf: Memory optimization
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-14 18:42:53 +08:00
CaptainB 2afc0b976d feat: enhance tool message generation with input and output formatting
--story=1020020 --user=刘瑞斌 【个人】mcp 调用可以展示出 request 和 response ,有时候 查询结果不对或不符合预期,可能是 request 入参不对 https://www.tapd.cn/62980211/s/1798256
2025-11-13 16:21:35 +08:00
wxg0103 40c327d49a feat: add translations for application token usage and top question statistics 2025-11-13 15:02:25 +08:00
wxg0103 a1d8117839 fix: update top questions statistics terminology from "top10" to "top" 2025-11-13 15:01:58 +08:00
wxg0103 0555632095 feat: add token usage and top questions statistics endpoints 2025-11-13 14:56:56 +08:00
wxg0103 697f6509bb fix: increase username and nickname length validation to 4-64 characters 2025-11-12 16:52:51 +08:00
CaptainB 4f58295d39 feat: add default manager to AppModelMixin 2025-11-12 15:31:41 +08:00
CaptainB 30fdae34c6 fix: change default value of with_valid parameter in save method to True 2025-11-12 15:10:26 +08:00
wxg0103 8f3d5ec940 fix: update username length validation to 4-64 characters 2025-11-12 14:26:39 +08:00
zhangzhanwei a568cfe893 fix: Whisper stt model 2025-11-12 11:31:53 +08:00
CaptainB b148152c94 fix: update terminology from "documents" to "problems" in batch generation 2025-11-12 11:05:56 +08:00
shaohuzhang1 523164f319
fix: After adding form collection at the loop node, the variables from subsequent nodes in the loop become empty (#4351) 2025-11-12 10:43:52 +08:00
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
wxg0103 371e4e6a09 fix: remove streaming parameter from GeminiImage initialization 2025-11-11 14:47:56 +08:00
zhangzhanwei f1766f921b fix: Application read permission
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-10 11:38:22 +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 da73582093 refactor: enhance init_scheduler to include xpack job execution
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled
2025-11-07 21:12:29 +08:00
CaptainB 42d91e232b refactor: remove scheduler service and related code 2025-11-07 21:02:27 +08:00
shaohuzhang1 ccc8c06c51
refactor: add cl100k_base.tiktoken tokenizer. (#4331)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-07 16:09:26 +08:00
liqiang-fit2cloud f9c1742b43 refactor: change model path in MKTokenizer. 2025-11-07 14:57:04 +08:00
shaohuzhang1 f457588cd5
feat: Local model validation using local_madel (#4330) 2025-11-07 14:43:40 +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
shaohuzhang1 6df1e19eaa
fix: dependency package (#4328) 2025-11-06 20:17:21 +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
shaohuzhang1 1b464c4d8f
fix: Rearrange model dependency (#4324) 2025-11-06 14:24:48 +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 ebf54aa12f
fix: Application workflow, after the loop ends, there is a recall node that cannot have a conversation (#4319) 2025-11-05 19:53:01 +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
zhangzhanwei 26a3067992 feat: Folder move order by name 2025-11-04 17:49:11 +08:00
zhangzhanwei eb867daa6c feat: Folder move
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-11-04 15:05:12 +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 1fd6d13242 perf: revert preload. 2025-11-04 14:00:32 +08:00
liqiang-fit2cloud c3ab9f458d perf: revert preload. 2025-11-04 13:56:20 +08:00
liqiang-fit2cloud 701c962c2e perf: revert preload. 2025-11-04 13:35:53 +08:00
liqiang-fit2cloud 65bcb28aa8 perf: revert preload. 2025-11-04 13:33:22 +08:00
liqiang-fit2cloud 28c2f517fc perf: revert preload. 2025-11-04 13:02:12 +08:00
liqiang-fit2cloud ab170c843e perf: revert preload. 2025-11-04 11:20:29 +08:00
liqiang-fit2cloud 792d32d7e1 perf: revert preload. 2025-11-04 11:03:56 +08:00
liqiang-fit2cloud dc9c4c9e01 perf: revert preload. 2025-11-04 10:40:55 +08:00
liqiang-fit2cloud 8c788bf785 perf: revert preload. 2025-11-04 09:31:27 +08:00
CaptainB 5b46e7d730 chore: update document deletion logic to handle paragraph IDs and related mappings
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
--bug=1063248 --user=刘瑞斌 【知识库】删除文档时,分段与问题的关联关系没有清除 https://www.tapd.cn/62980211/s/1793500
2025-11-03 16:38:32 +08:00
王旭辉 d636d6ea7a fix(vector): 修复 source_type 判断类型问题
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
- 将 source_type 转换为字符串后再与枚举值比较
- 避免了类型不匹配导致的判断错误
- 确保了数据分块功能的正常运行
2025-11-03 10:44:21 +08:00
shaohuzhang1 fcd258d05c
fix: The maximum limit for application dialogue has been modified to 10000000 times (#4302) 2025-11-03 10:20:20 +08:00
shaohuzhang1 a0d3031b4f
fix: Unable to export dialogue log data due to error (#4298) 2025-10-31 14:00:06 +08:00
zhangzhanwei 2a15017523 fix: XF stt model 2025-10-31 13:49:24 +08:00
zhangzhanwei d9bda9679d fix: Migration 2025-10-30 17:23:50 +08:00
CaptainB d0cd6d657a refactor: replace get_embedding_model_default_params with get_model_default_params 2025-10-30 17:12:30 +08:00
CaptainB 1b08643b98 fix: enhance embedding model retrieval with default parameters 2025-10-30 17:05:23 +08:00
CaptainB ed19db07d1 feat: add function to retrieve default parameters for embedding models
--bug=1063177 --user=刘瑞斌 【知识库】-知识库使用的模型更换维度参数值并重新向量化后,命中测试、检索报错 https://www.tapd.cn/62980211/s/1792117
2025-10-30 17:00:38 +08:00
wxg0103 2de6bd2018 chore: update file hashes for community 2025-10-30 16:24:21 +08:00
zhangzhanwei aba41c4a4b fix: Migrate file 2025-10-30 15:38:41 +08:00
wxg0103 ab434b0a9e fix: add retry mechanism for file uploads and response handling in image.py 2025-10-30 15:34:41 +08:00
zhangzhanwei 274dfdae5c fix: Model get in migration file 2025-10-30 14:27:46 +08:00
CaptainB 543f83a822 refactor: update ZhipuChatModel to use BaseChatOpenAI and improve token counting
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
--bug=1061305 --user=刘瑞斌 【应用】ai对话启用工具后部分模型(智谱)不统计tokens https://www.tapd.cn/62980211/s/1791683
2025-10-30 11:12:43 +08:00
zhangzhanwei ef162bdc3e fix: Folder permission of workspace manager 2025-10-30 10:12:24 +08:00
zhangzhanwei c86306a67e fix: Common user folder permission
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-10-29 18:32:09 +08:00
shaohuzhang1 2298bf6992
fix: After enabling identity authentication in the application, the knowledge base retrieves the reference document list variable, but there is no content retrieved when asking questions on the application dialogue page (#4286) 2025-10-29 15:53:37 +08:00
zhangzhanwei 2cf1ad7ea4 fix: In the variable aggregation strategy that returns the first non-null value of each group, empty strings, empty lists, and empty objects are not treated as null values 2025-10-29 15:34:34 +08:00
CaptainB a4b7b8dbbb fix: improve error logging in tools.py to include exception info 2025-10-29 15:08:57 +08:00
shaohuzhang1 28001613f8
fix: When the workflow does not respond, there is an error in the historical chat record data (#4282) 2025-10-29 13:43:02 +08:00
shaohuzhang1 2151c51f78
fix: Variable assignment data type converted (#4279)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run
2025-10-28 18:32:11 +08:00
wangxuhui 57195f277a
fix(permission): 修复权限常量解析操作符索引错误 (#4275)
- 修正了权限字符串解析时操作符索引,从原来的第三部分改为第二部分
- 确保权限实例创建时操作符获取正确
- 改善权限常量解析的准确性和稳定性

Co-authored-by: 王旭辉 <2569429256@qq.com>
2025-10-28 18:31:31 +08:00
wxg0103 82224271e8 fix: update video handling to return URLs instead of base64 encoding 2025-10-28 18:21:08 +08:00
zhangzhanwei 79b47bb1b3 feat: Node execute 2025-10-28 18:09:52 +08:00
wxg0103 02311687c8 fix: update video format handling in base_video_understand_node.py 2025-10-28 17:55:54 +08:00
wxg0103 28d403f237 fix: update message handling in image.py to support multiple message types 2025-10-28 16:24:21 +08:00
wxg0103 79fce87e93 fix: add video format detection for uploaded files in image.py 2025-10-28 15:54:56 +08:00
shaohuzhang1 b679b17f56
fix: When extracting parameters, input parameters that are not strings result in the node being unable to execute (#4276) 2025-10-28 15:18:27 +08:00
zhangzhanwei 22f72c5d33 fix: Remove duplicate user id 2025-10-28 10:23:15 +08:00