| 686 | case ArtifactKind::StyleEmbedding: return "style_embedding"; |
| 687 | case ArtifactKind::PromptEmbedding: return "prompt_embedding"; |
| 688 | case ArtifactKind::AcousticTokens: return "acoustic_tokens"; |
| 689 | case ArtifactKind::Midi: return "midi"; |
| 690 | case ArtifactKind::TranscriptAlignment: return "transcript_alignment"; |
| 691 | case ArtifactKind::DiarizationState: return "diarization_state"; |
| 692 | case ArtifactKind::VadState: return "vad_state"; |
| 693 | case ArtifactKind::Custom: return "custom"; |
| 694 | } |
| 695 | return "custom"; |
| 696 | } |
| 697 | |
| 698 | double require_ttft_ms(const std::optional<double> & ttft_ms) { |
| 699 | if (!ttft_ms.has_value()) { |
| 700 | throw std::runtime_error("streaming response produced no TTFT event"); |
nothing calls this directly
no test coverage detected