master
bel 2023-06-17 10:43:37 -06:00
parent 9e1b252af2
commit 0e6a18c898
1 changed files with 3 additions and 3 deletions

View File

@ -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,
)