X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/d302957c09b192d0fbc09287ba7dcb7c32426556..016d46008fc9726d2617e4e3ea098113f34c7636:/prompt.go 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) }