From b635a3cdb4a265a7fea2c411aeab499bc47da795 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 6 Sep 2026 13:34:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(platform):=20query=5Fprofile=5Fids=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=8A=A0IF=E7=A9=BA=E4=BF=9D=E6=8A=A4=E2=80=94?= =?UTF-8?q?=E2=80=94=E8=A7=84=E6=A0=BC=E6=B2=A1=E5=B8=A6async=5Fsteps?= =?UTF-8?q?=E6=97=B6=E7=A9=BA=E4=B8=B2=E8=A6=86=E7=9B=96=E4=BC=9A=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E6=A8=A1=E5=9E=8B=E5=B7=B2=E6=8C=82=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E2=86=92=E5=BC=82=E6=AD=A5=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=8A=A5=E6=9C=AA=E7=99=BB=E8=AE=B0(2026-09-06=20r2v=E5=AE=9E?= =?UTF-8?q?=E6=B5=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_platform/platform_ability.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipeline_platform/platform_ability.py b/pipeline_platform/platform_ability.py index daf515e..4d65377 100644 --- a/pipeline_platform/platform_ability.py +++ b/pipeline_platform/platform_ability.py @@ -673,10 +673,13 @@ async def _h_apply_llm_config(sor, params, ctx): % (vmid, cur_vendor, vendor_name)) # profile_id 必须一并刷新(2026-09-05 实测 bug):模型原挂模板可能已被 # 弃用重建(旧骨架自愈),不刷新则运行时仍指 deprecated 模板→必崩 + # query_profile_ids 同理要 IF 保护(2026-09-06 实测 bug):本次规格没带 + # async_steps 时空串覆盖会把模型已挂好的查询模板清空 → 异步测试报 + # 「未登记查询步骤模板」。空值=没提取到,不是「要清除」。 new_pid = profile_ids.get(cap, "") await sor.sqlExe( "UPDATE llm_model SET description=${d}$, " - "sync_mode=${sm}$, query_profile_ids=${q}$, " + "sync_mode=${sm}$, query_profile_ids=IF(${q}$='', query_profile_ids, ${q}$), " "profile_id=IF(${p}$='', profile_id, ${p}$), updated_at=NOW() " "WHERE id=${i}$", {"d": desc, "sm": sync_mode, "q": query_ids_json,