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

Function load_registry_config

src/framework/runtime/registry.cpp:172–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 return model;
171}
172
173std::unique_ptr<ILoadedVoiceModel> ModelRegistry::load(const std::filesystem::path & model_path) const {
174 ModelLoadRequest request;
175 request.model_path = model_path;
176 return load(request);
177}
178
179void ModelRegistry::validate_request(const ModelLoadRequest & request) const {
180 if (!engine::io::is_existing_file(request.model_path) && !engine::io::is_existing_directory(request.model_path)) {
181 throw std::runtime_error("model path does not exist: " + request.model_path.string());
182 }
183 if (request.family_hint.has_value() && !supports_family(*request.family_hint)) {
184 throw std::runtime_error("unsupported model family hint: " + *request.family_hint);

Callers 1

make_default_registryFunction · 0.85

Calls 4

load_config_mapFunction · 0.85
split_csvFunction · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected