Fix llama.com interactive mode regressions

This commit is contained in:
Justine Tunney 2023-05-13 00:09:38 -07:00
parent fd34ef732d
commit 4a8a81eb9f
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 67 additions and 22 deletions

View file

@ -338,7 +338,11 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) {
fprintf(stderr, "%s: No prompt specified\n", __func__);
fprintf(stderr, "%s: Loading CompanionAI\n", __func__);
}
append_file_to_prompt("/zip/companionai.txt", params);
if (fileexists("third_party/ggml/companionai.txt")) {
append_file_to_prompt("third_party/ggml/companionai.txt", params);
} else {
append_file_to_prompt("/zip/companionai.txt", params);
}
const char *user;
user = getenv("USER");
if (!user || !*user) {