MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / generateOptionsVariations

Method generateOptionsVariations

tests/utils/test_fixtures.cpp:169–193  ·  view source on GitHub ↗

TestDataGenerator implementation

Source from the content-addressed store, hash-verified

167
168// TestDataGenerator implementation
169std::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
195nlohmann::json TestDataGenerator::createMinimalValidResponse() {
196 return nlohmann::json{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected