Commit Graph

629 Commits (9bddff29149b9196b242d6b41e5be579107c5fca)

Author SHA1 Message Date
zhangzhanwei 7942b12afa feat: Permission constants 2025-07-28 15:56:58 +08:00
CaptainB 41cb4fedb1 feat: add application access token and API key management endpoints 2025-07-28 11:58:47 +08:00
wxg0103 60c7f78a90 refactor: update resource permission constants for improved clarity 2025-07-28 10:29:29 +08:00
zhangzhanwei ca070d7466 fix: Model swagger 2025-07-25 18:35:58 +08:00
CaptainB 6ce1eb7116 feat: add create and drop knowledge index functions for improved database management 2025-07-23 21:42:33 +08:00
CaptainB 567a7612ed refactor: change log level from debug to info for chat log and access number jobs 2025-07-23 10:26:49 +08:00
CaptainB b41b054c49 fix: update LOG_KEEP_DAYS to use CONFIG for configurable log retention 2025-07-22 10:23:14 +08:00
CaptainB 1df333bffc refactor: reorganize post handler and introduce post scheduler handler 2025-07-21 15:52:54 +08:00
CaptainB 6f2db6f488 feat: Implement daily log rotation with DailyTimedRotatingFileHandler 2025-07-20 14:16:13 +08:00
CaptainB 6e16c74a5e refactor: improve logging and status updates in embedding methods 2025-07-18 15:21:01 +08:00
CaptainB 638a09d4f4 chore: redirect access logs to /dev/null in gunicorn and local_model 2025-07-18 10:40:46 +08:00
CaptainB 03ba4df625 fix: update Gunicorn access log file configuration to use stdout 2025-07-17 21:43:27 +08:00
CaptainB 7eeb42c9fd refactor: replace Status with State for consistent status handling 2025-07-17 16:59:12 +08:00
CaptainB 9e80a652c4 refactor: replace try_lock and un_lock with RedisLock for improved locking mechanism 2025-07-17 15:34:11 +08:00
liqiang-fit2cloud c96de7a5f5 refactor: change log level. 2025-07-17 09:55:21 +08:00
wxg0103 8231ae66e4 refactor: update license validation logic to ensure proper function calls 2025-07-16 18:23:13 +08:00
CaptainB 8adca34c88 refactor: change log level from info to debug for clean_debug_file_lock 2025-07-16 17:20:22 +08:00
CaptainB f385bb3aec refactor: rename validation method to follow naming conventions 2025-07-16 16:42:26 +08:00
CaptainB 948ec2fde6 refactor: centralize scheduler initialization and improve logging in job files 2025-07-16 16:25:23 +08:00
liqiang-fit2cloud caf89e39a7 Merge remote-tracking branch 'origin/v2' into v2 2025-07-16 16:24:50 +08:00
liqiang-fit2cloud e982bb0ca1 feat: add MAXKB_SANDBOX_PYTHON_BANNED_KEYWORDS env to ban keywords in tool content. 2025-07-16 16:24:41 +08:00
CaptainB b1144d5ee9 refactor: centralize scheduler initialization and improve logging in job files 2025-07-16 16:23:55 +08:00
shaohuzhang1 2febd83a68
fix: Application apikey call failed (#3629) 2025-07-16 15:52:13 +08:00
shaohuzhang1 d76c85ca3b
fix: Interface parameters disappear after dialogue password authentication (#3626) 2025-07-16 14:10:11 +08:00
liqiang-fit2cloud 232e90fd12 refactor: change log level. 2025-07-16 14:09:07 +08:00
wxg0103 97061073c1 fix: reorder OTHER permission constant in permission_constants.py 2025-07-16 14:03:03 +08:00
shaohuzhang1 e4c1c39972
fix: Startup error (#3622) 2025-07-16 10:15:45 +08:00
wxg0103 c035dc5f39 fix: remove empty lines from text before text-to-speech conversion 2025-07-16 10:12:49 +08:00
shaohuzhang1 df9245a5a4
feat: Access num reset job (#3614) 2025-07-15 18:35:00 +08:00
wxg0103 5c1f105cab feat: update resource management permissions and localization strings 2025-07-15 18:22:42 +08:00
wxg0103 89dcac64e6 feat: add is_show parameter to Permission class to control frontend visibility 2025-07-15 18:05:38 +08:00
shaohuzhang1 dd2fbb5c98
fix: Scheduled file scheduled deletion (#3613) 2025-07-15 18:02:25 +08:00
CaptainB 816825d5de fix: remove unnecessary db_index from content field in models
--bug=1058812 --user=刘瑞斌 【知识库】多选问题批量关联分段,向量数据没有关联,导致向量检索结果为空 https://www.tapd.cn/62980211/s/1732046
2025-07-15 17:48:21 +08:00
shaohuzhang1 158bd2f43b
fix: rsa_key cache setting (#3610) 2025-07-15 17:21:18 +08:00
shaohuzhang1 28b97cd2dd
fix: Access can only be granted after OpenAPI authentication (#3601) 2025-07-15 14:51:50 +08:00
shaohuzhang1 c2f52d0759
fix: Access can only be granted after OpenAPI authentication (#3599) 2025-07-15 13:49:33 +08:00
CaptainB 26df300105 chore: remove diskcache2 dependency from pyproject.toml 2025-07-15 12:56:02 +08:00
wxg0103 243745dc07 feat: update email templates and translations for improved clarity and consistency 2025-07-15 11:42:36 +08:00
shaohuzhang1 3cc272c5e0
fix: chat user (#3591) 2025-07-14 19:27:31 +08:00
wxg0103 1ebfc5882d refactor: reorganize permission constants for document operations 2025-07-14 16:34:26 +08:00
wxg0103 ea199e23f1 refactor: reorganize permission constants for MODEL and TOOL to remove duplicates 2025-07-14 16:29:38 +08:00
wxg0103 b53034727f fix: update permission operate type from READ to DOWNLOAD for document access 2025-07-14 16:17:29 +08:00
CaptainB 77af823879 refactor: replace FileLock with utility functions for locking mechanism 2025-07-14 15:49:09 +08:00
CaptainB ea56fd6212 feat: add db_index to various fields for improved query performance 2025-07-14 11:54:19 +08:00
shaohuzhang1 34842e4ae4
feat: application chat api (#3574) 2025-07-12 17:54:37 +08:00
wxg0103 224fe26f28 feat: add DocHeadersMiddleware to handle document access and redirect unauthorized users 2025-07-12 11:41:50 +08:00
shaohuzhang1 592ae54e82
fix: Application import (#3566) 2025-07-11 21:45:08 +08:00
wxg0103 d781797555 refactor: remove encryption from sensitive fields in auth_config_serializer and related modules 2025-07-11 19:47:32 +08:00
wxg0103 28e89ca6ec refactor: replace encryption function with new encrypt method for sensitive data handling 2025-07-11 19:43:53 +08:00
shaohuzhang1 570bcfbaf2
fix: Crossing does not take effect (#3561) 2025-07-11 17:37:54 +08:00
wxg0103 02afb6a0bc refactor: update API KEY translations and improve formatting in permission constants 2025-07-11 17:24:38 +08:00
shaohuzhang1 210e09681f
feat: Apikey call supports cross domain and application whitelist (#3556) 2025-07-11 11:15:21 +08:00
shaohuzhang1 c370e99304
feat: Support openai dialogue (#3551) 2025-07-10 19:16:47 +08:00
CaptainB 4c9756839a chore: normalize with_filter parameter to boolean in split handle files
--bug=1057879 --user=刘瑞斌 【知识库】高级分段中自动清洗功能未生效 https://www.tapd.cn/62980211/s/1727744
2025-07-10 15:06:19 +08:00
wxg0103 fe78de5d3c feat: add email templates for verification codes in English, Chinese, and Traditional Chinese 2025-07-10 15:02:10 +08:00
shaohuzhang1 9d2fd05604
fix: Token auth (#3543) 2025-07-10 12:07:33 +08:00
shaohuzhang1 3450ef78a4
fix: Application import and export (#3538) 2025-07-09 21:34:41 +08:00
wxg0103 0316afa299 refactor: enhance HTML tag removal in text processing to exclude audio, video, and image tags 2025-07-09 20:34:47 +08:00
liqiang-fit2cloud a43bde9a01 fix: remove PATH env. 2025-07-09 18:11:36 +08:00
zhangzhanwei 5d8e64cbb2 fix: Chat user permission of common user 2025-07-09 17:42:56 +08:00
CaptainB e0118f1ce9 chore: remove redundant pickle import in tool_code.py 2025-07-09 15:01:19 +08:00
CaptainB dc04d46518 refactor: replace diskcache with pickle for result handling and organize sandbox directories 2025-07-09 14:14:23 +08:00
CaptainB 4da75ac3e0 refactor: replace FunctionExecutor with ToolExecutor in base_tool_lib_node and base_tool_node 2025-07-09 12:48:19 +08:00
shaohuzhang1 7ff65aef76
fix: Application import and export (#3525) 2025-07-09 12:35:49 +08:00
liqiang-fit2cloud 217e3ce58d fix: wrong group. 2025-07-09 11:43:38 +08:00
shaohuzhang1 f627daf231
fix: Password authentication (#3507) 2025-07-08 15:49:55 +08:00
shaohuzhang1 90abe70e2e
fix: Resource authorization dirty data (#3506) 2025-07-08 13:44:08 +08:00
zhangzhanwei 1f1d4721eb fix: Tool permission of two common user role 2025-07-08 10:40:54 +08:00
liqiang-fit2cloud 8ee575b32e refactor: disable access log. 2025-07-07 15:04:35 +08:00
CaptainB cb40d62162 refactor: allow loading of truncated images and increase max pixel limit in common_handle.py
--bug=1057749 --user=刘瑞斌 【知识库】qa问答对文档中带图片,导入后图片未显示 https://www.tapd.cn/62980211/s/1723700
2025-07-04 15:53:37 +08:00
liqiang-fit2cloud 8842319805 fix: fix sandbox_path. 2025-07-04 14:53:01 +08:00
wxg0103 9d1549fc76 feat: add application resource API with pagination and filtering 2025-07-03 18:26:31 +08:00
zhangzhanwei 97269d5445 fix: System common user permission by role 2025-07-03 18:21:57 +08:00
shaohuzhang1 c2256a5305
fix: Community user permissions (#3465) 2025-07-03 15:30:28 +08:00
CaptainB aa901c7fc7 fix: update file URL paths to use relative references 2025-07-02 22:45:11 +08:00
shaohuzhang1 191e62f96d
fix: role user permission (#3453) 2025-07-02 14:58:02 +08:00
shaohuzhang1 e8418f6f5c
fix: role user permission (#3452) 2025-07-02 14:26:57 +08:00
zhangzhanwei 8b40762218 fix: Application permission 2025-07-02 14:19:11 +08:00
CaptainB 5ac0b2be3d refactor: simplify cache timeout handling in user token management 2025-07-02 12:43:50 +08:00
CaptainB 6068530cdd refactor: update locking mechanism to use a consistent key format and set default timeout 2025-07-02 12:36:43 +08:00
CaptainB 0ad38e2540 refactor: improve document status update logic and enhance post handler functionality 2025-07-02 11:44:45 +08:00
zhanweizhang7 b71a854d7c
feat: Shared knowledge access permission (#3450) 2025-07-02 11:35:14 +08:00
zhangzhanwei a4143eed23 feat: hit test permission 2025-07-01 18:12:31 +08:00
CaptainB 089915f488 refactor: improve error logging for image reading and enhance image handling logic
--bug=1057749 --user=刘瑞斌 【知识库】qa问答对文档中带图片,导入后图片未显示 https://www.tapd.cn/62980211/s/1720856
2025-07-01 14:17:10 +08:00
CaptainB 2cf01dd12c refactor: remove license validation message for community version knowledge bases 2025-07-01 11:08:07 +08:00
zhangzhanwei 60a0c6039e feat: Knowledge chat user permission 2025-06-30 18:23:44 +08:00
wxg0103 e6f9238005 refactor: i18n 2025-06-30 16:39:33 +08:00
shaohuzhang1 2c0a8afd5f
fix: add extends role (#3430) 2025-06-30 15:05:53 +08:00
CaptainB 0f1d57f0cb feat: enhance error logging for file processing in CSV, XLS, and DOC handlers 2025-06-30 12:49:50 +08:00
CaptainB 82a2203be6 fix: handle string type for limit and improve error logging in pdf_split_handle
--bug=1057493 --user=刘瑞斌 【知识库】上传文档,使用高级分段报错 https://www.tapd.cn/62980211/s/1720110
2025-06-30 12:47:47 +08:00
shaohuzhang1 91e2dd7ea6
feat: add extends role (#3428) 2025-06-30 11:50:59 +08:00
shaohuzhang1 8e29562e30
feat: Knowledge chat user permission (#3426) 2025-06-30 11:08:30 +08:00
shaohuzhang1 f5ee7b5c25
feat: user resource permission (#3424) 2025-06-30 10:47:28 +08:00
CaptainB 7862c17b21 refactor: remove debug print statement for session timeout in UserToken class 2025-06-28 19:44:19 +08:00
CaptainB 1dc6d6e8ba feat: add session timeout configuration to Config class 2025-06-28 19:43:40 +08:00
shaohuzhang1 d4d7bdde41
feat: user resource permission ui (#3423) 2025-06-27 22:38:00 +08:00
shaohuzhang1 c5bdada6dc
feat: user resource permission (#3422) 2025-06-27 22:22:52 +08:00
zhangzhanwei 62cb3704cf feat: System setting permission 2025-06-27 15:11:57 +08:00
wxg0103 644247b1cb refactor: permission 2025-06-27 15:03:43 +08:00
CaptainB 173f7e8321 fix: ensure limit parameter is an integer in split_model initialization
--bug=1057597 --user=刘瑞斌 【知识库】通用知识库高级分段生成预览为空 https://www.tapd.cn/62980211/s/1719490
2025-06-27 11:06:55 +08:00
zhangzhanwei 530928af38 fix: System router permission 2025-06-26 21:03:10 +08:00
wxg0103 e1c37636d6 refactor: resource model list 2025-06-26 19:54:28 +08:00
CaptainB d49f448a5f fix: correct image path replacement logic in zip_split_handle 2025-06-26 17:02:34 +08:00
CaptainB 37ac79dc5a feat: import File model in zip_split_handle for enhanced functionality
--bug=1057478 --user=刘瑞斌 【知识库】通用知识库上传ZIP文件,分段失败 https://www.tapd.cn/62980211/s/1719181
2025-06-26 16:56:28 +08:00
CaptainB e24a2001c5 feat: refine regex patterns in text_split_handle for improved comment detection
--bug=1057526 --user=刘瑞斌 【知识库】markdown文件导入知识库,分段详情中代码块展示异常 https://www.tapd.cn/62980211/s/1719131
2025-06-26 16:23:32 +08:00
shaohuzhang1 ea7b8547be
fix: user permission (#3390) 2025-06-25 20:37:27 +08:00
shaohuzhang1 6cdd8ffe39
feat: add download operate permission (#3388) 2025-06-25 17:57:55 +08:00
wxg0103 3a2294e53b fix: chat user change error 2025-06-25 17:30:12 +08:00
CaptainB a73e0b10f9 refactor: replace logging with maxkb_logger for consistent logging across modules 2025-06-25 17:00:18 +08:00
CaptainB fe8f87834d refactor: replace logging with maxkb_logger for consistent logging across modules 2025-06-25 16:46:50 +08:00
CaptainB 3aa0847506 refactor: replace print statements with logging for improved error tracking 2025-06-25 16:18:19 +08:00
shaohuzhang1 275ec80701
feat: chat record (#3374) 2025-06-24 17:44:59 +08:00
wxg0103 c253e8b696 refactor: remove print 2025-06-24 15:30:42 +08:00
CaptainB 2ab57802f4 feat: update sys.path to exclude multiple directories in tool_code.py 2025-06-24 14:45:05 +08:00
CaptainB d459beb1a0 feat: update Python package paths in tool_code.py and Dockerfile 2025-06-24 14:08:18 +08:00
CaptainB 3a91562289 feat: refactor tool_code.py to use sys.executable and update Dockerfile for diskcache2 installation 2025-06-24 13:35:02 +08:00
shaohuzhang1 1a5db6b5ea
fix: user role (#3362) 2025-06-24 11:14:51 +08:00
CaptainB 01ed7045e0 feat: update Dockerfile to set up Python virtual environment and adjust memory settings for builds 2025-06-23 19:42:28 +08:00
wxg0103 eeb101d150 refactor: i18n 2025-06-23 19:04:38 +08:00
shaohuzhang1 f32f158876
fix: application permission label (#3345) 2025-06-23 13:46:50 +08:00
CaptainB 3e9c3c0602 feat: update UUID generation to use uuid7 for improved uniqueness across models 2025-06-23 11:19:20 +08:00
CaptainB b496a2b2c5 feat: update migration files and add new models for application settings and chat functionality 2025-06-23 10:25:45 +08:00
CaptainB 47a3489a0a fix: add LOG_DIR import and update log directory paths 2025-06-21 22:42:46 +08:00
shaohuzhang1 9c73c8dea0
fix: Complete application permissions (#3339) 2025-06-20 22:40:48 +08:00
shaohuzhang1 145e96594f
fix: Complete application permissions (#3338) 2025-06-20 22:31:41 +08:00
shaohuzhang1 35d86c6484
feat: workspace manage role (#3333) 2025-06-20 17:15:55 +08:00
liqiang-fit2cloud 0c8a80897b fix: remove REDIS env from sandbox. 2025-06-20 16:29:04 +08:00
shaohuzhang1 961e67e98d
fix: resource permission group list (#3331) 2025-06-20 14:35:58 +08:00
shaohuzhang1 5e67c0b40a
fix: resource permission group list (#3330) 2025-06-20 14:26:15 +08:00
shaohuzhang1 ba078a9aab
fix: user role (#3319) 2025-06-19 20:29:28 +08:00
shaohuzhang1 4e170c6ed7
feat: chat password auth (#3318) 2025-06-19 20:02:52 +08:00
CaptainB 45908b91ff refactor: update dataset_id to knowledge_id in zip_split_handle.py and tools.py 2025-06-18 21:28:33 +08:00
CaptainB c0b770f41e refactor: update dataset_id to knowledge_id in zip_split_handle.py and tools.py 2025-06-18 21:15:53 +08:00
wxg0103 395f3f91ec refactor: i18n 2025-06-18 20:17:01 +08:00
shaohuzhang1 f7a0ee6184
fix: permission role (#3295) 2025-06-18 17:07:38 +08:00
shaohuzhang1 acb00e92d8
fix: permission role (#3294) 2025-06-18 16:49:17 +08:00
wxg0103 ee1ca6fb23 refactor: permission 2025-06-18 16:12:54 +08:00
wxg0103 3498d799cf refactor: permission 2025-06-18 16:06:18 +08:00
shaohuzhang1 4205dc902f
fix: permission (#3292) 2025-06-18 13:33:49 +08:00
shaohuzhang1 5e9a7583a3
fix: ui 404 (#3290) 2025-06-18 12:14:40 +08:00
shaohuzhang1 a08dd98ffb
fix: permission (#3289) 2025-06-18 11:26:21 +08:00
shaohuzhang1 d0ba49456f
fix: chat user token (#3284) 2025-06-17 20:08:39 +08:00
shaohuzhang1 695773df7d
fix: user role (#3278) 2025-06-17 14:47:17 +08:00
wxg0103 f773792424 refactor: log add workspace_id 2025-06-16 16:31:28 +08:00
shaohuzhang1 60b3bcdd64
feat: operate log workspace (#3266) 2025-06-16 16:28:07 +08:00
wxg0103 d8ca74a2f5 refactor: xpack license 2025-06-16 15:08:33 +08:00
shaohuzhang1 1ea78ea0c7
fix: role authentication (#3263) 2025-06-16 14:05:08 +08:00
wxg0103 f4efdca5ed refactor: permission 2025-06-13 18:36:01 +08:00
CaptainB 43087e7ca3 feat: add compilation and installation scripts for MaxKB project 2025-06-13 17:58:52 +08:00
CaptainB 54578eff33 fix: update logging messages to reflect new MaxKB branding 2025-06-13 11:18:39 +08:00