You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SPDLOG_LOGGER_ERROR(modelmanager_logger, "Created {} subconfig file is not a valid JSON file. Error: {}", type, rapidjson::GetParseError_En(parseResult.Code()));
141
+
return StatusCode::JSON_INVALID;
142
+
}
143
+
if (validateJsonAgainstSchema(subconfigJson, MEDIAPIPE_SUBCONFIG_SCHEMA.c_str()) != StatusCode::OK) {
144
+
SPDLOG_ERROR("Created {} subconfig file is not in valid configuration format", type);
145
+
return StatusCode::JSON_INVALID;
146
+
}
147
+
return StatusCode::OK;
148
+
}
149
+
125
150
static Status createRerankSubconfigTemplate(const std::string& directoryPath, const RerankGraphSettingsImpl& graphSettings) {
126
151
std::ostringstream oss;
127
152
// clang-format off
@@ -144,6 +169,10 @@ static Status createRerankSubconfigTemplate(const std::string& directoryPath, co
144
169
}
145
170
]
146
171
})";
172
+
auto status = validateSubconfigSchema(oss.str(), "rerank");
EXPECT_EXIT(ovms::Config::instance().parse(arg_count, n_argv), ::testing::ExitedWithCode(OVMS_EX_USAGE), "max_prompt_len is only supported for NPU target device");
EXPECT_EXIT(ovms::Config::instance().parse(arg_count, n_argv), ::testing::ExitedWithCode(OVMS_EX_USAGE), "For now only OpenVINO models are supported");
0 commit comments