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

Function merged_options

app/workflow/workflow.cpp:491–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489 out.emplace(key, expanded_json(item, context));
490 }
491 return engine::io::json::Value::make_object(std::move(out));
492 }
493 return value;
494}
495
496std::unordered_map<std::string, std::string> merged_options(
497 const std::unordered_map<std::string, std::string> & base,
498 const engine::io::json::Value * value,
499 const WorkflowContext & context) {
500 auto out = base;
501 if (value == nullptr || value->is_null()) {
502 return out;
503 }
504 for (const auto & [key, child] : value->as_object()) {
505 out[key] = expand_value(minitts::cli::json_option_string(child), context);
506 }

Callers 3

run_model_step_implFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_model_step_foreachFunction · 0.85

Calls 3

expand_valueFunction · 0.85
json_option_stringFunction · 0.85
is_nullMethod · 0.80

Tested by

no test coverage detected