From b15b060afbc0de3d5c5044600a02c9923c7f7b50 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 20 Apr 2026 15:20:43 +0800 Subject: [PATCH] =?UTF-8?q?ui:=20=E6=94=B6=E6=95=9BDify=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9=E5=B9=B6=E8=A1=A5=E5=85=85=E5=AD=97=E6=AE=B5=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 变更项: 1. Dify 应用配置区保留刚需字段:name、provider_template、app_key、workflow_output_key(out key)。 2. 隐藏非刚需覆盖字段(mode/endpoint/response_mode/request_timeout),降低维护复杂度。 3. app_key 输入改为密码样式:默认小圆点展示,支持眼睛按钮切换明文。 4. 在 Provider 模板与 Dify 应用区新增字段说明提示,便于快速理解配置含义。 --- admin/dashboard/templates/system_llm.html | 31 +++++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/admin/dashboard/templates/system_llm.html b/admin/dashboard/templates/system_llm.html index f7a0b32..4de79e7 100644 --- a/admin/dashboard/templates/system_llm.html +++ b/admin/dashboard/templates/system_llm.html @@ -43,6 +43,10 @@ 新增模板 +
+ 字段说明: + `api_base_url`=Dify 服务地址;`endpoint`=工作流接口(常用 `workflows/run`);`mode`=workflow/chat;`request_timeout`=秒。 +
@@ -75,6 +79,10 @@
新增应用
+
+ 字段说明: + `name`=应用标识;`provider_template`=复用哪个公共模板;`app_key`=Dify 应用 Key;`workflow_output_key`=工作流输出字段(常用 `text`)。 +
@@ -86,12 +94,13 @@ - + + - - - -
@@ -475,6 +484,18 @@ .workspace-header h3 { font-size: 18px; margin-bottom: 4px; } .workspace-header p { font-size: 13px; color: #64748b; } .config-meta { display: flex; gap: 12px; color: #64748b; font-size: 12px; flex-wrap: wrap; } + .field-tips { + margin: 0 0 12px; + padding: 10px 12px; + border-radius: 10px; + background: rgba(15, 23, 42, 0.04); + color: #475569; + font-size: 12px; + line-height: 1.5; + display: flex; + gap: 8px; + flex-wrap: wrap; + } .section-list { display: flex; flex-direction: column; gap: 12px; } .entry-card { border: 1px solid rgba(148,163,184,0.16); border-radius: 14px; } .entry-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }