From 14a5fe5974dd1df767edf4f77374de340a827872 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Wed, 10 Dec 2025 14:39:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=201.=E8=B0=83=E6=95=B4api=E7=9B=B4?= =?UTF-8?q?=E8=BF=9E=E8=BE=93=E5=87=BA=202.=E5=A2=9E=E5=8A=A0=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E5=BA=93loading=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/do/handle.go | 3 +-- internal/tools/konwledge_base.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/biz/do/handle.go b/internal/biz/do/handle.go index ebebf83..16af5f8 100644 --- a/internal/biz/do/handle.go +++ b/internal/biz/do/handle.go @@ -9,7 +9,6 @@ import ( "ai_scheduler/internal/data/model" "ai_scheduler/internal/entitys" "ai_scheduler/internal/gateway" - "ai_scheduler/internal/pkg" "ai_scheduler/internal/pkg/l_request" "ai_scheduler/internal/pkg/mapstructure" "ai_scheduler/internal/tools" @@ -269,7 +268,7 @@ func (r *Handle) handleApiTask(ctx context.Context, requireData *entitys.Require if err != nil { return } - entitys.ResJson(requireData.Ch, "", pkg.JsonStringIgonErr(res.Text)) + entitys.ResJson(requireData.Ch, "", res.Text) return } diff --git a/internal/tools/konwledge_base.go b/internal/tools/konwledge_base.go index fb5a7f1..dbbb5ce 100644 --- a/internal/tools/konwledge_base.go +++ b/internal/tools/konwledge_base.go @@ -59,6 +59,7 @@ func (k *KnowledgeBaseTool) Definition() entitys.ToolDefinition { // Execute 执行知识库查询 func (k *KnowledgeBaseTool) Execute(ctx context.Context, requireData *entitys.RequireData) error { + entitys.ResLoading(requireData.Ch, k.Name(), "正在为您搜索相关信息") return k.chat(requireData) From f0a4008896fa22039ba7c6e01319127f812982e3 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Wed, 10 Dec 2025 16:09:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=20=E8=B0=83=E6=95=B4go?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 073c4eb..0f01662 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module ai_scheduler -go 1.24.0 +go 1.24.7 require ( gitea.cdlsxd.cn/self-tools/l_request v1.0.8