From 1bcf8f6e100484ac8c8cc2615472b8d3bb581bf9 Mon Sep 17 00:00:00 2001 From: WangLiZhao <1838393649@qq.com> Date: Sat, 30 May 2026 22:08:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(model):=20=E6=B7=BB=E5=8A=A0=E6=B5=81?= =?UTF-8?q?=E5=BC=8F=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=93=8D=E5=BA=94=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/prompt/prompt_files_handle_service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/prompt/prompt_files_handle_service.go b/service/prompt/prompt_files_handle_service.go index 30f6821..6e514de 100644 --- a/service/prompt/prompt_files_handle_service.go +++ b/service/prompt/prompt_files_handle_service.go @@ -194,10 +194,10 @@ func fetchFileContent(ctx context.Context, client *http.Client, url string) (str return strings.TrimSpace(string(body)), nil } -// SkillMdContent 根据 skillName 获取 zip 内所有 md 文件拼接内容 func SkillMdContent(ctx context.Context, skillName string) string { skillResp, err := gateway.GetSkillUser(ctx, skillName) if err != nil { + g.Log().Warningf(ctx, "[SkillMd] GetSkillUser 失败: %v", err) return "" } @@ -208,11 +208,13 @@ func SkillMdContent(ctx context.Context, skillName string) string { zipBytes, err := downloadFile(client, fullUrl, maxSize) if err != nil { + g.Log().Warningf(ctx, "[SkillMd] 下载失败 url=%s err=%v", fullUrl, err) return "" } mdContents, err := extractMdFiles(ctx, zipBytes) if err != nil || len(mdContents) == 0 { + g.Log().Warningf(ctx, "[SkillMd] 提取md失败 count=%d err=%v", len(mdContents), err) return "" }