fix(platform_ability): 修9月3日潜伏bug——_default_templates返回单dict被按二元组解包,新建适配模板分支必崩(此前模板全复用未触发)

This commit is contained in:
yumoqing 2026-09-05 10:29:26 +08:00
parent 7629da8b8b
commit b51d276ea0

View File

@ -367,7 +367,7 @@ async def _h_apply_llm_config(sor, params, ctx):
if recs:
profile_ids[cap] = getattr(recs[0], "id", "")
continue
req_tpl, resp_tpl = _default_templates(protocol, cap, spec)
req_tpl = _default_templates(protocol, cap, spec)
pid = getID()
await sor.C("llm_api_profile", {
"id": pid, "name": "%s-%s-自动配置" % (protocol, cap),