From 22fca127cb5f65ea5587a2fb97a0dce544eebac6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 28 Aug 2026 12:26:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(agent):=20=E6=A8=A1=E5=9E=8B=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=B8=A6=20session=5Fid=E2=80=94=E2=80=94=E4=B8=8E?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=A8=A1=E5=9E=8B=E6=8C=81=E4=B9=85=E5=8C=96?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/agent/index.ui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/agent/index.ui b/wwwroot/agent/index.ui index 3b98d05..f642eb1 100644 --- a/wwwroot/agent/index.ui +++ b/wwwroot/agent/index.ui @@ -18,7 +18,7 @@ "event": "click", "actiontype": "script", "target": "self", - "script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'VBox',options:{css:'filler',width:'100%',height:'100%'},subwidgets:[{widgettype:'urlwidget',options:{url:'/pipeline_core/api/agent_menus.dspy?session_id='+sid+'&pipeline_id=bidding_general',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',margin:'0 24px 24px 24px',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid+'&pipeline_id=bidding_general',model_dataurl:'/pipeline_core/api/agent_model_options.dspy',model_cwidth:14,placeholder:'输入你的需求...'}}]}});" + "script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'VBox',options:{css:'filler',width:'100%',height:'100%'},subwidgets:[{widgettype:'urlwidget',options:{url:'/pipeline_core/api/agent_menus.dspy?session_id='+sid+'&pipeline_id=bidding_general',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',margin:'0 24px 24px 24px',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid+'&pipeline_id=bidding_general',model_dataurl:'/pipeline_core/api/agent_model_options.dspy?session_id='+sid,model_cwidth:14,placeholder:'输入你的需求...'}}]}});" }] } ] @@ -50,7 +50,7 @@ "css": "filler", "margin": "0 24px 24px 24px", "url": "/pipeline_core/api/agent_chat.dspy?session_id=default&pipeline_id=bidding_general", - "model_dataurl": "/pipeline_core/api/agent_model_options.dspy", + "model_dataurl": "/pipeline_core/api/agent_model_options.dspy?session_id=default", "model_cwidth": 14, "placeholder": "输入你的需求..." }