hrmm
parent
9e1b252af2
commit
0e6a18c898
|
|
@ -302,7 +302,7 @@ func handleAPIChatBotPut(w http.ResponseWriter, r *http.Request) error {
|
||||||
if err := appendFile(inputF, reversePrompt+message); err != nil {
|
if err := appendFile(inputF, reversePrompt+message); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(cacheF); false && os.IsNotExist(err) {
|
if _, err := os.Stat(cacheF); os.IsNotExist(err) {
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
commands := strings.Fields(Config.ChatBot.Command)
|
commands := strings.Fields(Config.ChatBot.Command)
|
||||||
commands = append(commands,
|
commands = append(commands,
|
||||||
|
|
@ -333,8 +333,8 @@ func handleAPIChatBotPut(w http.ResponseWriter, r *http.Request) error {
|
||||||
commands := strings.Fields(Config.ChatBot.Command)
|
commands := strings.Fields(Config.ChatBot.Command)
|
||||||
commands = append(commands,
|
commands = append(commands,
|
||||||
"-f", inputF,
|
"-f", inputF,
|
||||||
//"--prompt-cache-all",
|
"--prompt-cache-all",
|
||||||
//"--prompt-cache", cacheF,
|
"--prompt-cache", cacheF,
|
||||||
"-n", strconv.Itoa(Config.ChatBot.N),
|
"-n", strconv.Itoa(Config.ChatBot.N),
|
||||||
"--reverse-prompt", reversePrompt,
|
"--reverse-prompt", reversePrompt,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue