| 422 | if (result.named_audio_outputs.size() == 1) { |
| 423 | return task_result_json_with_timing(result, timing_json(wall_ms, result.named_audio_outputs.front().audio)); |
| 424 | } |
| 425 | return task_result_json_with_timing(result, timing_json(wall_ms)); |
| 426 | } |
| 427 | |
| 428 | std::string streaming_task_result_json( |
| 429 | const engine::runtime::TaskResult & result, |
| 430 | const std::optional<double> & ttft_ms) { |
| 431 | return task_result_json_with_timing(result, ttft_timing_json(require_ttft_ms(ttft_ms))); |
| 432 | } |
| 433 | |
| 434 | std::string stream_event_json(const engine::runtime::StreamEvent & event) { |
| 435 | std::ostringstream out; |
| 436 | out << "{"; |
nothing calls this directly
no test coverage detected