From 5943ad07a7c15817815daa9e16dfbeba3c6a3e75 Mon Sep 17 00:00:00 2001 From: GuoQing Zhang Date: Wed, 19 Jun 2024 11:25:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=81=87=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=8A=80=E8=83=BD=E5=B7=B2=E4=B8=8B=E7=BA=BF?= =?UTF-8?q?=E7=9A=84=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/bisheng/api/services/assistant_agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/bisheng/api/services/assistant_agent.py b/src/backend/bisheng/api/services/assistant_agent.py index 92cbdb7f8..a7ece7755 100644 --- a/src/backend/bisheng/api/services/assistant_agent.py +++ b/src/backend/bisheng/api/services/assistant_agent.py @@ -343,8 +343,8 @@ async def run(self, query: str, chat_history: List = None, callback: Callbacks = run_id = uuid.uuid4() await callback[0].on_tool_start({ 'name': one, - }, input_str='', run_id=run_id) - await callback[0].on_tool_end(output='', name=one, run_id=run_id) + }, input_str='flow if offline', run_id=run_id) + await callback[0].on_tool_end(output='flow is offline', name=one, run_id=run_id) result = await self.agent.ainvoke(inputs, config=RunnableConfig(callbacks=callback)) # 包含了history,将history排除, 默认取最后一个为最终结果 res = [result[-1]] From 997cadae17394b3433b578b5f8f6ce09f2bf9d74 Mon Sep 17 00:00:00 2001 From: GuoQing Zhang Date: Wed, 19 Jun 2024 11:48:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=9F=A5=E8=AF=A2=E5=AE=A1?= =?UTF-8?q?=E8=AE=A1=E6=97=A5=E5=BF=97=E6=97=B6=EF=BC=8C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=94=AF=E6=8C=81=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/bisheng/api/v1/audit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/bisheng/api/v1/audit.py b/src/backend/bisheng/api/v1/audit.py index ec2a935e7..d5de8681e 100644 --- a/src/backend/bisheng/api/v1/audit.py +++ b/src/backend/bisheng/api/v1/audit.py @@ -13,7 +13,7 @@ @router.get('', response_model=UnifiedResponseModel) def get_audit_logs(*, group_ids: Optional[List[str]] = Query(default=None, description='分组id列表'), - operator_id: Optional[int] = Query(default=None, description='操作人id'), + operator_ids: Optional[List[int]] = Query(default=None, description='操作人id列表'), start_time: Optional[datetime] = Query(default=None, description='开始时间'), end_time: Optional[datetime] = Query(default=None, description='结束时间'), system_id: Optional[str] = Query(default=None, description='系统模块'),