From 0e6a18c8989625a5421a6481a34e0d70ea83c6dd Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 17 Jun 2023 10:43:37 -0600 Subject: [PATCH] hrmm --- vicuna-tools.d/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vicuna-tools.d/main.go b/vicuna-tools.d/main.go index a5b00af..dc18be9 100644 --- a/vicuna-tools.d/main.go +++ b/vicuna-tools.d/main.go @@ -302,7 +302,7 @@ func handleAPIChatBotPut(w http.ResponseWriter, r *http.Request) error { if err := appendFile(inputF, reversePrompt+message); err != nil { return err } - if _, err := os.Stat(cacheF); false && os.IsNotExist(err) { + if _, err := os.Stat(cacheF); os.IsNotExist(err) { if err := func() error { commands := strings.Fields(Config.ChatBot.Command) commands = append(commands, @@ -333,8 +333,8 @@ func handleAPIChatBotPut(w http.ResponseWriter, r *http.Request) error { commands := strings.Fields(Config.ChatBot.Command) commands = append(commands, "-f", inputF, - //"--prompt-cache-all", - //"--prompt-cache", cacheF, + "--prompt-cache-all", + "--prompt-cache", cacheF, "-n", strconv.Itoa(Config.ChatBot.N), "--reverse-prompt", reversePrompt, )