feat(platform): apply_llm_config新建供应商改用ctx.org_id——不再硬编码0,跟随操作者机构
This commit is contained in:
parent
ce9f4b5bdf
commit
92e7642bb3
@ -344,7 +344,7 @@ async def _h_apply_llm_config(sor, params, ctx):
|
||||
"id": vendor_id, "name": vendor_name, "protocol": protocol,
|
||||
"endpoints": json.dumps(eps_norm, ensure_ascii=False),
|
||||
"description": spec.get("doc_notes", "") or "",
|
||||
"status": "active", "org_id": "0"})
|
||||
"status": "active", "org_id": ctx.get("org_id", "") or "0"})
|
||||
vendor_action = "新建供应商 %s(%s)" % (vendor_id, vendor_name)
|
||||
|
||||
# 2. 适配模板:按 (协议×能力) 复用,缺则新建
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user