| 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 | |
| 161 | const IVoiceModelLoader * ModelRegistry::find_loader(const ModelLoadRequest & request) const { |
nothing calls this directly
no test coverage detected