From 889b450a6ed9e8f577907f92f47cd8a9925e7dc6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 10 Sep 2026 14:25:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(r4):=20sd=5Fproject=5Frole=5Fmodels?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E5=9D=8F=E4=B8=8B=E6=8B=89=E2=80=94=E2=80=94?= =?UTF-8?q?codes=E6=94=B9=E6=8C=87llm=5Fmodel(status=3Dactive)+=E8=A1=A5sd?= =?UTF-8?q?=5Frole=E5=AD=97=E5=85=B8=E7=BB=848=E9=A1=B9(=E4=B8=8Eget=5Frol?= =?UTF-8?q?e=5Foptions.dspy=E5=AF=B9=E9=BD=90);=E5=8E=9Frole=E6=8C=87appco?= =?UTF-8?q?des=5Fkv=20parentid=3Dsd=5Frole=E4=BD=86=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E7=BB=84=E4=B8=8D=E5=AD=98=E5=9C=A8,model=5Fname=E6=8C=87?= =?UTF-8?q?=E5=B7=B2=E5=81=9C=E7=94=A8=E6=97=A7llm=E8=A1=A8(8=E8=A1=8C?= =?UTF-8?q?=E6=AE=8B=E7=95=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/data.json | 38 ++++++++++++++++++++++++++++++ models/sd_project_role_models.json | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/init/data.json b/init/data.json index 2c14b9f..7db1106 100644 --- a/init/data.json +++ b/init/data.json @@ -44,6 +44,44 @@ } ] }, + { + "parentid": "sd_role", + "parentname": "SDLC产线角色", + "items": [ + { + "k": "agent.pm", + "v": "PM 项目经理" + }, + { + "k": "agent.requirement", + "v": "需求分析师" + }, + { + "k": "agent.design", + "v": "系统设计师" + }, + { + "k": "agent.develop", + "v": "开发工程师" + }, + { + "k": "agent.deploy_test", + "v": "测试部署工程师" + }, + { + "k": "agent.test", + "v": "测试工程师" + }, + { + "k": "agent.deploy_prod", + "v": "生产部署工程师" + }, + { + "k": "agent.qc", + "v": "QC 质量控制" + } + ] + }, { "parentid": "sd_project_status", "parentname": "项目状态", diff --git a/models/sd_project_role_models.json b/models/sd_project_role_models.json index d378ec6..0a68f49 100644 --- a/models/sd_project_role_models.json +++ b/models/sd_project_role_models.json @@ -11,7 +11,7 @@ {"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"}, {"name": "project_id", "title": "项目ID", "type": "str", "length": 32, "nullable": "no"}, {"name": "role", "title": "角色名", "type": "str", "length": 64, "nullable": "no"}, - {"name": "model_name", "title": "模型名(llm.name,空=用项目缺省模型)", "type": "str", "length": 128}, + {"name": "model_name", "title": "模型名(llm_model.name,空=用项目缺省模型)", "type": "str", "length": 128}, {"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"}, {"name": "updated_at", "title": "更新时间", "type": "timestamp"} ], @@ -20,6 +20,6 @@ ], "codes": [ {"field": "role", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sd_role'"}, - {"field": "model_name", "table": "llm", "valuefield": "name", "textfield": "name", "cond": ""} + {"field": "model_name", "table": "llm_model", "valuefield": "name", "textfield": "name", "cond": "status='active'"} ] }