mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Fix llama.com interactive mode regressions
This commit is contained in:
parent
fd34ef732d
commit
4a8a81eb9f
3 changed files with 67 additions and 22 deletions
6
third_party/ggml/common.cc
vendored
6
third_party/ggml/common.cc
vendored
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue