From fee6528f935088a9fee3582d5f4778b649787dfb Mon Sep 17 00:00:00 2001 From: WangLiZhao <1838393649@qq.com> Date: Wed, 20 May 2026 11:50:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(prompt):=20=E4=BF=AE=E5=A4=8D=E6=8E=A8?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9E=8B=E8=B0=83=E7=94=A8=E9=87=8D=E8=AF=95?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/prompt/prompt_compose_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/prompt/prompt_compose_service.go b/service/prompt/prompt_compose_service.go index 9711b33..69dc494 100644 --- a/service/prompt/prompt_compose_service.go +++ b/service/prompt/prompt_compose_service.go @@ -70,7 +70,7 @@ func handlePromptBuild(ctx context.Context, req *dto.ComposeMessagesReq, chatMod var message *dto.MultiRoundResult var taskRecord *entity.ComposeTask - for attempt := 0; attempt <= 0; attempt++ { + for attempt := 0; attempt <= maxRetryTimes; attempt++ { if attempt > 0 { g.Log().Warningf(ctx, "[重试]第 %d/%d 次调用推理模型", attempt, maxRetryTimes) }