| 249 | } |
| 250 | |
| 251 | std::vector<engine::runtime::TaskRequest> parse_task_requests( |
| 252 | const std::string & request_sequence_json, |
| 253 | const std::string & prompt_noise_file, |
| 254 | const std::string & noise_file) { |
| 255 | if (request_sequence_json.empty()) { |
| 256 | throw std::runtime_error("VibeVoice warmbench requires --request-sequence-json"); |
| 257 | } |
| 258 | const auto root = engine::io::json::parse(request_sequence_json); |
| 259 | std::vector<engine::runtime::TaskRequest> out; |
| 260 | for (const auto & item : root.as_array()) { |
| 261 | out.push_back(make_task_request(item, prompt_noise_file, noise_file)); |
| 262 | } |
| 263 | if (out.empty()) { |
| 264 | throw std::runtime_error("VibeVoice warmbench request sequence is empty"); |
| 265 | } |
| 266 | return out; |
| 267 | } |
| 268 | |
| 269 | engine::io::json::Value number(double value) { |
| 270 | return engine::io::json::Value::make_number(value); |
no test coverage detected