Commit ·
32b84a5
1
Parent(s): 145d38e
Upload 2 files
Browse files- ChatIPC.cpp +6 -1
ChatIPC.cpp
CHANGED
|
@@ -1515,7 +1515,7 @@ static void load_kb_binary(KnowledgeBase &kb, const std::string &fname, int cli_
|
|
| 1515 |
}
|
| 1516 |
|
| 1517 |
static void print_commands(const char *p){
|
| 1518 |
-
std::cout << "CLI options: [--response-max-length N] [--save FILE] [--load-kb FILE] [--dictionary-depth D] [--learn f1 f2 ...] [--repeat-penalty P] [--help]\n";
|
| 1519 |
std::cout << " --response-max-length N Maximum number of tokens in a response.\n";
|
| 1520 |
std::cout << " --save-kb FILE Save the knowledge-base to a binary file.\n";
|
| 1521 |
std::cout << " --load-kb FILE Load a previously saved knowledge-base from a binary file.\n";
|
|
@@ -1523,6 +1523,7 @@ static void print_commands(const char *p){
|
|
| 1523 |
std::cout << " --n-gram N Size of the n-gram where N is the size.\n";
|
| 1524 |
std::cout << " --learn f1 f2 ... Learn from one or more text files to update the knowledge-base.\n";
|
| 1525 |
std::cout << " --repeat-penalty P Penalize repeated tokens when constructing response (higher values reduce repetition).\n";
|
|
|
|
| 1526 |
std::cout << " --help Show all the Command-Line Interface (CLI) options for using " << p << "\n";
|
| 1527 |
}
|
| 1528 |
|
|
@@ -1545,6 +1546,10 @@ int main(int argc, char **argv){
|
|
| 1545 |
if (a=="--dictionary-depth" && i+1<argc){ def_depth = std::stoi(argv[++i]); continue; }
|
| 1546 |
if (a=="--n-gram" && i+1<argc){ n_gram_size = std::max(1, std::stoi(argv[++i])); continue; }
|
| 1547 |
if (a=="--repeat-penalty" && i+1<argc){ repeat_penalty = std::stod(argv[++i]); continue; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1548 |
if (a=="--learn"){
|
| 1549 |
while(i+1<argc && argv[i+1][0] != '-') learn_files.push_back(argv[++i]);
|
| 1550 |
continue;
|
|
|
|
| 1515 |
}
|
| 1516 |
|
| 1517 |
static void print_commands(const char *p){
|
| 1518 |
+
std::cout << "CLI options: [--response-max-length N] [--save FILE] [--load-kb FILE] [--dictionary-depth D] [--learn f1 f2 ...] [--repeat-penalty P] [--activate-agi] [--help]\n";
|
| 1519 |
std::cout << " --response-max-length N Maximum number of tokens in a response.\n";
|
| 1520 |
std::cout << " --save-kb FILE Save the knowledge-base to a binary file.\n";
|
| 1521 |
std::cout << " --load-kb FILE Load a previously saved knowledge-base from a binary file.\n";
|
|
|
|
| 1523 |
std::cout << " --n-gram N Size of the n-gram where N is the size.\n";
|
| 1524 |
std::cout << " --learn f1 f2 ... Learn from one or more text files to update the knowledge-base.\n";
|
| 1525 |
std::cout << " --repeat-penalty P Penalize repeated tokens when constructing response (higher values reduce repetition).\n";
|
| 1526 |
+
std::cout << " --activate-agi Activate the Artificial General Intelligence (AGI) features.\n";
|
| 1527 |
std::cout << " --help Show all the Command-Line Interface (CLI) options for using " << p << "\n";
|
| 1528 |
}
|
| 1529 |
|
|
|
|
| 1546 |
if (a=="--dictionary-depth" && i+1<argc){ def_depth = std::stoi(argv[++i]); continue; }
|
| 1547 |
if (a=="--n-gram" && i+1<argc){ n_gram_size = std::max(1, std::stoi(argv[++i])); continue; }
|
| 1548 |
if (a=="--repeat-penalty" && i+1<argc){ repeat_penalty = std::stod(argv[++i]); continue; }
|
| 1549 |
+
if (a=="--activate-agi"){
|
| 1550 |
+
std::cerr << "AGI feature subscription fee is $1,000 CAD per month. To pay the fee, contact Caleb Nwokocha via email cnwokocha@proton.me\n";
|
| 1551 |
+
continue;
|
| 1552 |
+
}
|
| 1553 |
if (a=="--learn"){
|
| 1554 |
while(i+1<argc && argv[i+1][0] != '-') learn_files.push_back(argv[++i]);
|
| 1555 |
continue;
|