Compare commits

...

2 Commits

Author SHA1 Message Date
855d5b9abe refactor(prompt): 移除重复的数组长度参数
- 删除多余的 totalRounds 参数传递
- 保留必要的数组长度计算逻辑
- 优化参数列表结构
2026-05-22 18:33:43 +08:00
866b97d098 feat(model): 添加运营商列表功能 2026-05-22 13:03:10 +08:00

View File

@@ -120,15 +120,14 @@ func promptBuildWithRounds(ctx context.Context, req *dto.ComposeMessagesReq, mod
`, req.ModelName, formInfo, req.SkillName, req.UserFiles) `, req.ModelName, formInfo, req.SkillName, req.UserFiles)
return fmt.Sprintf(providerProtocol.SystemPromptTemplate, return fmt.Sprintf(providerProtocol.SystemPromptTemplate,
req.ModelName, req.ModelName, // %s 目标模型名称
maxWindowSize, maxWindowSize, // %d 最大窗口
availableWindow, availableWindow, // %d 可用窗口
totalRounds, totalRounds, // %d 数组长度(多轮输出要求)
totalRounds, totalRounds, // %d 数组长度(结构铁律)
totalRounds, outputJSON, // %s 输出结构
outputJSON, inputInfo, // %s 完整输入信息
inputInfo, totalRounds, // %d 数组长度(最后一行)
totalRounds,
) )
} }