调用签到🔧注入时间
This commit is contained in:
@@ -88,6 +88,7 @@ func RunAgentToolLoop(ctx context.Context, state *State, profile *llm.Profile, s
|
|||||||
if routerPrompt == "" {
|
if routerPrompt == "" {
|
||||||
routerPrompt = primaryPrompt
|
routerPrompt = primaryPrompt
|
||||||
}
|
}
|
||||||
|
routerPrompt = routerPrompt + "\n当前日期:" + time.Now().Format("2006-01-02")
|
||||||
if primaryPrompt != "" {
|
if primaryPrompt != "" {
|
||||||
primarySystemMessage := &model.ChatCompletionMessage{
|
primarySystemMessage := &model.ChatCompletionMessage{
|
||||||
Role: "system",
|
Role: "system",
|
||||||
|
|||||||
Reference in New Issue
Block a user