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

Function parse_run_mode

src/framework/runtime/session.cpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198RunMode parse_run_mode(const std::string & value) {
199 if (value == "offline") {
200 return RunMode::Offline;
201 }
202 if (value == "streaming") {
203 return RunMode::Streaming;
204 }
205 throw std::runtime_error("unsupported run mode: " + value);
206}
207
208std::vector<TaskRequest> chunk_text_request(const TaskRequest & request, int64_t codepoint_budget) {
209 return chunk_text_request(request, codepoint_budget, engine::text::TextChunkMode::Default);

Callers 6

mainFunction · 0.85
load_modelsMethod · 0.85
run_model_step_implFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_model_step_foreachFunction · 0.85
build_task_specFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected