TestDataGenerator implementation
| 167 | |
| 168 | // TestDataGenerator implementation |
| 169 | std::vector<GenerateOptions> TestDataGenerator::generateOptionsVariations() { |
| 170 | std::vector<GenerateOptions> variations; |
| 171 | |
| 172 | // Basic prompt |
| 173 | variations.emplace_back("gpt-4o", "Simple test"); |
| 174 | |
| 175 | // With system prompt |
| 176 | variations.emplace_back("gpt-4o", "You are helpful", "User question"); |
| 177 | |
| 178 | // With messages |
| 179 | Messages msgs = {Message::user("Hello")}; |
| 180 | variations.emplace_back("gpt-4o", std::move(msgs)); |
| 181 | |
| 182 | // With all parameters |
| 183 | GenerateOptions full("gpt-4o", "Test prompt"); |
| 184 | full.temperature = 0.5; |
| 185 | full.max_tokens = 50; |
| 186 | full.top_p = 0.8; |
| 187 | full.frequency_penalty = -0.5; |
| 188 | full.presence_penalty = 0.3; |
| 189 | full.seed = 123; |
| 190 | variations.push_back(std::move(full)); |
| 191 | |
| 192 | return variations; |
| 193 | } |
| 194 | |
| 195 | nlohmann::json TestDataGenerator::createMinimalValidResponse() { |
| 196 | return nlohmann::json{ |
nothing calls this directly
no outgoing calls
no test coverage detected