X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/7c84ed87ef71088b880a3765b2653e1ded57bf14..a606686934b4028c29dca8e9dae6b2e188cee9c5:/prompt.go?ds=inline diff --git a/prompt.go b/prompt.go index e651988..694ad68 100644 --- a/prompt.go +++ b/prompt.go @@ -188,6 +188,7 @@ whole chat.` // cache of the turns. func prompt(name, instructionsPath, instructions string) string { text := strings.NewReplacer(promptName, name, promptInstructionsPath, instructionsPath).Replace(promptText) + return promptWithInstructions(text, promptTaskSentence, promptInstructionsClause, instructions) } @@ -195,6 +196,7 @@ func prompt(name, instructionsPath, instructions string) string { // with the instructions of the user at its end, as prompt does. func promptSubagent(name, instructions string) string { text := strings.ReplaceAll(promptSubagentText, promptName, name) + return promptWithInstructions(text, promptSubagentTaskSentence, promptSubagentInstructionsClause, instructions) }