MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / handle_generic_run

Method handle_generic_run

app/server/runtime.cpp:688–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
698double 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");

Callers

nothing calls this directly

Calls 5

parseFunction · 0.85
build_request_from_jsonFunction · 0.85
json_responseFunction · 0.85
task_result_jsonFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected