| 116 | } |
| 117 | |
| 118 | std::string gpt_random_prompt(std::mt19937 & rng) { |
| 119 | const int r = rng() % 10; |
| 120 | switch (r) { |
| 121 | case 0: return "So"; |
| 122 | case 1: return "Once upon a time"; |
| 123 | case 2: return "When"; |
| 124 | case 3: return "The"; |
| 125 | case 4: return "After"; |
| 126 | case 5: return "If"; |
| 127 | case 6: return "import"; |
| 128 | case 7: return "He"; |
| 129 | case 8: return "She"; |
| 130 | case 9: return "They"; |
| 131 | } |
| 132 | |
| 133 | return "The"; |
| 134 | } |
| 135 | |
| 136 | std::string trim(const std::string & s) { |
| 137 | std::regex e("^\\s+|\\s+$"); |