File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/modelbox/server/plugin/editor Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ void ModelboxEditorPlugin::HandlerGraphModifyTime(
529
529
modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson (
530
530
const nlohmann::json& body, std::string& cmd) {
531
531
nlohmann::json error_json;
532
- for (auto & element : body.items ()) {
532
+ for (const auto & element : body.items ()) {
533
533
cmd += " -" + element.key ();
534
534
if (element.value ().is_null ()) {
535
535
continue ;
@@ -548,7 +548,7 @@ modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson(
548
548
cmd += " " ;
549
549
}
550
550
551
- for (auto & i : port.items ()) {
551
+ for (const auto & i : port.items ()) {
552
552
cmd += i.key () + " =" + i.value ().dump ();
553
553
if (i != port.items ().end ()) {
554
554
cmd += " ," ;
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ ExternalProject_Add(
85
85
# nlohmann json
86
86
ExternalProject_Add(
87
87
nlohmann
88
- URL @LOCAL_PACKAGE_PATH@/v3.7.3 .tar.gz
88
+ URL @LOCAL_PACKAGE_PATH@/v3.11.2 .tar.gz
89
89
SOURCE_DIR ${THIRDPARTY_DOWNLOAD_DIR}/nlohmann
90
90
CONFIGURE_COMMAND ""
91
91
BUILD_COMMAND ""
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ if (NOT @USE_CN_MIRROR@)
33
33
set(TINYLOG_DOWNLOAD_URL "https://github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
34
34
set(PYBIND11_DOWNLOAD_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.9.1.zip")
35
35
set(TOML11_DOWNLOAD_URL "https://github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
36
- set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.7.3 /include.zip")
36
+ set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.11.2 /include.zip")
37
37
set(CPP_HTTPLIB_DOWNLOAD_URL "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.10.4.zip")
38
38
set(APIGW_CPP_SDK_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-binary/releases/download/BinaryArchive/APIGW-cpp-sdk.zip")
39
39
set(MODELBOX_WEBUI_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-webui/archive/refs/tags/0.1.3.zip")
44
44
set(TINYLOG_DOWNLOAD_URL "https://ghproxy.com/github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
45
45
set(PYBIND11_DOWNLOAD_URL "https://gitcode.net/mirrors/pybind/pybind11/-/archive/v2.9.1/pybind11-v2.9.1.zip")
46
46
set(TOML11_DOWNLOAD_URL "https://ghproxy.com/github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
47
- set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.7.3 .zip")
47
+ set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.11.2 .zip")
48
48
set(CPP_HTTPLIB_DOWNLOAD_URL "https://gitcode.net/mirrors/yhirose/cpp-httplib/-/archive/v0.10.4/cpp-httplib-v0.10.4.zip")
49
49
set(APIGW_CPP_SDK_DOWNLOAD_URL "https://obs.cn-north-1.myhuaweicloud.com/apig-sdk/APIGW-cpp-sdk.zip")
50
50
set(MODELBOX_WEBUI_DOWNLOAD_URL "https://gitee.com/modelbox/modelbox-webui/repository/archive/tags/0.1.3.zip")
You can’t perform that action at this time.
0 commit comments