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