From 973085ffc81a2ca117294a82a480856f58b7fdbc Mon Sep 17 00:00:00 2001 From: WangLiZhao <1838393649@qq.com> Date: Thu, 18 Jun 2026 15:42:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(prompt):=20=E4=BF=AE=E5=A4=8D=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93=E7=B1=BB=E5=9E=8B=E8=AF=B7=E6=B1=82=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8F=90=E7=A4=BA=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/prompt/prompt_build_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/prompt/prompt_build_service.go b/service/prompt/prompt_build_service.go index 284db31..b2d772b 100644 --- a/service/prompt/prompt_build_service.go +++ b/service/prompt/prompt_build_service.go @@ -38,7 +38,7 @@ func buildNodeTypeRequest(ctx context.Context, req *dto.ComposeMessagesReq, chat // buildStructTypeRequest 构建结构体类型请求(BuildType=3) func buildStructTypeRequest(ctx context.Context, req *dto.ComposeMessagesReq, chatModel *gateway.AsynchModel, ir *IR) (map[string]any, error) { - customPrompt := gjson.New(req.UserForm).Get("0.prompt").String() + customPrompt := req.UserPrompt ir.AddSystem(customPrompt) ir.AddUser(buildUserPrompt(ctx, req)) return compileToProviderRequest(ctx, ir, chatModel, req, customPrompt)