From 4e3521dfd53a7de674e5f992d318813a09a8c1b3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 4 Sep 2026 17:05:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(llm):=20=E6=A8=A1=E5=9E=8B=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=94=B6=E6=95=9B=E2=80=94=E2=80=94=E4=B8=BB=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=88=A0=E6=97=A7'=E6=A8=A1=E5=9E=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86'=E5=85=A5=E5=8F=A3(=E7=BB=9F=E4=B8=80=E8=B5=B0'?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=B2=BB=E7=90=86');security=5Fcheck?= =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=95=E5=8A=A0=E7=BB=9F=E4=B8=80=E6=8E=A8?= =?UTF-8?q?=E7=90=86=E7=AB=AF=E7=82=B9/pipeline-llm/api/v1/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/security_check.py | 3 ++- wwwroot/index.ui | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/security_check.py b/scripts/security_check.py index 5f990bc..6e87aa8 100644 --- a/scripts/security_check.py +++ b/scripts/security_check.py @@ -60,7 +60,8 @@ WHITELIST_PREFIXES = ( '/rbac/phone_login.dspy', '/rbac/user/logout.dspy', '/rbac/user/reset_password', '/i18n', '/bricks/', '/assets/', '/imgs/', '/download/', - '/pipeline_core/api/llm_v1/', # token 鉴权的 LLM 代理 + '/pipeline_core/api/llm_v1/', # token 鉴权的 LLM 代理(兼容保留,委托统一推理引擎) + '/pipeline-llm/api/v1/', # token 鉴权的统一模型推理端点(模型治理模块) # 纯静态资源目录(图片/前端产物),匿名可读是设计如此 '/rag/imgs/', '/reallife_asset/imgs/', '/univer-office/', # 定时任务入口:不走登录态,靠 client_ip=localhost 隔离(应用端口不对外开放 + diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 4b3f3dd..77c7ded 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -181,12 +181,6 @@ ] } {% else %} - { - "name": "llm_manage", - "label": "模型管理", - "icon": "", - "script": "this.open_tab({name:'llm_manage',label:'模型管理',url:'/pipeline_core/llm',removable:true})" - }, { "name": "llm_governance", "label": "模型治理",