| 11 | |
| 12 | namespace engine::models::ace_step { |
| 13 | namespace { |
| 14 | |
| 15 | AceStepModelSelection selection_from_request(const runtime::ModelLoadRequest & request) { |
| 16 | AceStepModelSelection selection; |
| 17 | if (const auto it = request.options.find("ace_step.dit_model_path"); it != request.options.end()) { |
| 18 | selection.dit_model_path = it->second; |
| 19 | return selection; |
| 20 | } |
| 21 | std::string model_name = request.model_path.filename().generic_string(); |
| 22 | std::transform(model_name.begin(), model_name.end(), model_name.begin(), [](unsigned char ch) { |
| 23 | return static_cast<char>(std::tolower(ch)); |
| 24 | }); |
no test coverage detected