From 94c78dea1b3b4cb3f8f40ba1f26e19e95544109d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 6 Sep 2026 19:48:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(core):=20=E4=BC=9A=E8=AF=9Dagent=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E4=B8=8B=E6=8B=89=E4=BC=A0capabilities=3Dchat?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=8F=AA=E5=88=97=E5=AF=B9=E8=AF=9D=E8=83=BD?= =?UTF-8?q?=E5=8A=9Bt2t/i2t/m2t(2026-09-06=E7=94=A8=E6=88=B7=E5=AE=9A?= =?UTF-8?q?=E5=A4=BA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/agent_model_options.dspy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wwwroot/api/agent_model_options.dspy b/wwwroot/api/agent_model_options.dspy index f37d925..0fb00b3 100644 --- a/wwwroot/api/agent_model_options.dspy +++ b/wwwroot/api/agent_model_options.dspy @@ -2,6 +2,8 @@ # 2026-09-04 收敛:实现统一在模型治理模块 pipeline_llm.selection.model_options, # 本文件只作 URL 入口(前端 AgentIO 的 model_dataurl 指向此处)。 # 返回格式与历史一致:value/model_id=模型id,model_id_text=模型名,含 selected 标记。 +# capabilities='chat':会话 agent 只列文本输出对话能力(t2t/i2t/m2t), +# 过滤掉 embedding/rerank/图视频生成等非对话模型(2026-09-06 用户定夺)。 uid = await get_user() org_id = (await get_userorgid()) or '' @@ -9,5 +11,6 @@ session_id = (params_kw or {}).get('session_id', '') or '' pipeline_id = (params_kw or {}).get('pipeline_id', '') or '' rows = await llm_model_options(org_id, uid=uid or '', session_id=session_id, - pipeline_id=pipeline_id, value_field='id') + pipeline_id=pipeline_id, value_field='id', + capabilities='chat') return rows