rpbot should* work?

This commit is contained in:
2024-01-24 22:55:18 +01:00
parent e504d7a8ef
commit 83264db09d
7 changed files with 498 additions and 6 deletions

View File

@@ -8,8 +8,11 @@
#include <random>
struct LlamaCppWeb : public TextCompletionI {
// this mutex locks internally
httplib::Client _cli{"http://localhost:8080"};
std::minstd_rand _rng{std::random_device{}()};
// this is a bad idea
static std::minstd_rand thread_local _rng;
~LlamaCppWeb(void);