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

Method validate_request

src/framework/runtime/registry.cpp:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 throw std::runtime_error("model path does not exist: " + request.model_path.string());
150 }
151 if (request.family_hint.has_value() && !supports_family(*request.family_hint)) {
152 throw std::runtime_error("unsupported model family hint: " + *request.family_hint);
153 }
154 if (request.model_spec_override.has_value() &&
155 !engine::io::is_existing_file(*request.model_spec_override) &&
156 !engine::io::is_existing_directory(*request.model_spec_override)) {
157 throw std::runtime_error("model spec override path does not exist: " + request.model_spec_override->string());
158 }
159}
160
161const IVoiceModelLoader * ModelRegistry::find_loader(const ModelLoadRequest & request) const {

Callers

nothing calls this directly

Calls 2

is_existing_fileFunction · 0.85
is_existing_directoryFunction · 0.85

Tested by

no test coverage detected