MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / gpt_random_prompt

Function gpt_random_prompt

external/ggml/examples/common.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118std::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
136std::string trim(const std::string & s) {
137 std::regex e("^\\s+|\\s+$");

Callers 6

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected