调用签到🔧注入时间

This commit is contained in:
2026-07-01 12:43:05 +08:00
parent 16d0d0ec0b
commit 6052bf90ec
+1
View File
@@ -88,6 +88,7 @@ func RunAgentToolLoop(ctx context.Context, state *State, profile *llm.Profile, s
if routerPrompt == "" {
routerPrompt = primaryPrompt
}
routerPrompt = routerPrompt + "\n当前日期:" + time.Now().Format("2006-01-02")
if primaryPrompt != "" {
primarySystemMessage := &model.ChatCompletionMessage{
Role: "system",