From a24a2320de646e7d78702a89165380b24472641a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 6 Sep 2026 13:48:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(platform):=20=E6=8F=90=E4=BA=A4=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=8E=92=E9=99=A4=E6=9D=A1=E4=BB=B6=E8=A1=A5legacy?= =?UTF-8?q?=E5=91=BD=E5=90=8D(-query/-download=E7=BB=93=E5=B0=BE)=E2=80=94?= =?UTF-8?q?=E2=80=94i2v=E5=AE=9E=E6=B5=8B=E6=97=A7=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=A8=A1=E6=9D=BFhappyhorse-1.1-i2v-query?= =?UTF-8?q?=E6=BC=8F=E7=BD=91=E8=A2=AB=E8=AF=AF=E9=80=89=E4=B8=BA=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E6=A8=A1=E6=9D=BF(=E7=A9=BAschema=E6=97=A0hard?= =?UTF-8?q?=E8=BF=9D=E8=A7=84=E9=9D=99=E9=BB=98=E8=AF=AF=E6=8C=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_platform/platform_ability.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pipeline_platform/platform_ability.py b/pipeline_platform/platform_ability.py index 4d65377..f89834e 100644 --- a/pipeline_platform/platform_ability.py +++ b/pipeline_platform/platform_ability.py @@ -581,14 +581,21 @@ async def _h_apply_llm_config(sor, params, ctx): for cap in caps: # 名称过滤必须加(2026-09-05 e2e 实测 bug):查询/下载步骤模板同库同协议 # 同能力,不加过滤会被「最新优先」误选为提交模板 → 提交打到查询 path → 404 + # 两种命名都要排(2026-09-06 i2v 实测漏网): + # 共享命名 {protocol}-{purpose}-{path} → 含中缀 -query- + # legacy 命名 {vmid}-{purpose} → 以 -query 结尾(无后置短横) + # 只排中缀时 legacy 查询模板会被当成提交模板挂到模型上(schema 为空 + # 过不了体检门禁也不报错——空 schema 无 hard 违规,静默误挂) recs = await sor.sqlExe( "SELECT id, request_template, response_template, param_schema " "FROM llm_api_profile " "WHERE protocol=${p}$ AND capability=${c}$ AND status='active' " "AND name NOT LIKE ${l1}$ AND name NOT LIKE ${l2}$ " + "AND name NOT LIKE ${l3}$ AND name NOT LIKE ${l4}$ " "ORDER BY created_at DESC LIMIT 1", {"p": protocol, "c": cap, - "l1": "%-query-%", "l2": "%-download-%"}) + "l1": "%-query-%", "l2": "%-download-%", + "l3": "%-query", "l4": "%-download"}) await sor.sqlExe("COMMIT", {}) if recs: pid_old = getattr(recs[0], "id", "")