From 58853de72d19d6363a13956ce19303a60967c523 Mon Sep 17 00:00:00 2001 From: ymq Date: Fri, 11 Sep 2026 15:30:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(bridge):=20project=5Fid=E9=80=8F=E4=BC=A0?= =?UTF-8?q?=E8=A1=A5=E5=85=A8=E2=80=94=E2=80=94proxy=5Fchat=5Fcompletion?= =?UTF-8?q?=E5=A7=94=E6=89=98chat=5Finference=E5=B8=A6token=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E7=9A=84project=5Fid;bug=5Fflow=E7=9A=84PM=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E8=B0=83=E7=94=A8=E5=B8=A6project=5Fid=E8=90=BD?= =?UTF-8?q?=E6=B5=81=E6=B0=B4(=E9=85=8D=E5=A5=97pipeline-llm=20427cd7c,202?= =?UTF-8?q?6-09-10=E9=81=97=E7=95=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/bug_flow.py | 2 +- pipeline_service/llm_proxy.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pipeline_service/bug_flow.py b/pipeline_service/bug_flow.py index 9f8a2fb..b88ca66 100644 --- a/pipeline_service/bug_flow.py +++ b/pipeline_service/bug_flow.py @@ -378,7 +378,7 @@ async def pm_bug_confirm_run(sor, project_id): try: raw = await llm_call_msgs( [{"role": "system", "content": system}, {"role": "user", "content": user}], - model=model, temperature=0.2, org_id=org_id) + model=model, temperature=0.2, org_id=org_id, project_id=project_id or '') except Exception as e: logger.warning(f"pm_bug_confirm_run LLM 失败 project={project_id}: {e}") return {"confirmed": 0, "rejected": 0, "skipped": len(bugs)} diff --git a/pipeline_service/llm_proxy.py b/pipeline_service/llm_proxy.py index f0208ba..cb636dd 100644 --- a/pipeline_service/llm_proxy.py +++ b/pipeline_service/llm_proxy.py @@ -282,7 +282,8 @@ async def proxy_chat_completion(token, payload): data = await chat_inference( org_id, info.get('created_by', '') or '', payload, model_name=model_name, - task_ref='proxy:%s' % (info.get('project_id') or '')) + task_ref='proxy:%s' % (info.get('project_id') or ''), + project_id=info.get('project_id') or '') except ImportError: return False, "模型治理模块(pipeline-llm)未安装,推理引擎不可用" except Exception as e: