forgotten wip changes

This commit is contained in:
2024-10-06 11:44:19 +02:00
parent f38da08334
commit 55e3a8a6f8
3 changed files with 16 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ int main(void) {
}
std::cerr << lcw._cli.host() << " " << lcw._cli.port() << " endpoint healthy\n";
std::cout << "The meaning of life is to"
std::cerr << "The meaning of life is to"
<< lcw.complete(nlohmann::json{
{"prompt", "The meaning of life is to"},
{"min_p", 0.1}, // model dependent
@@ -34,9 +34,9 @@ int main(void) {
})
<< "\n";
std::cout << "-------------------------\n";
std::cerr << "-------------------------\n";
std::cout << "complete from select:\n";
std::cerr << "complete from select:\n";
std::vector<std::string_view> possible {
" die",
" die.",
@@ -46,12 +46,12 @@ int main(void) {
" Hi",
};
for (size_t i = 0; i < 10; i++) {
std::cout << "The meaning of life is to";
std::cerr << "The meaning of life is to";
auto res = lcw.completeSelect("The meaning of life is to", possible);
if (res < 0) {
std::cout << " error--\n";
std::cerr << " error\n";
} else {
std::cout << possible[res] << "\n";
std::cerr << possible[res] << "\n";
}
}