fix: only enable TAE after successful load (#1517)

This commit is contained in:
leejet authored and GitHub committed 2026-05-18 23:32:03 +08:00
1 parent f683c88a28
commit b758b7de13
1 file changed
+2 -1
+2 -1
View File
@@ -327,9 +327,10 @@ public:
LOG_INFO("loading tae from '%s'", sd_ctx_params->taesd_path); LOG_INFO("loading tae from '%s'", sd_ctx_params->taesd_path);
if (!model_loader.init_from_file(sd_ctx_params->taesd_path, "tae.")) { if (!model_loader.init_from_file(sd_ctx_params->taesd_path, "tae.")) {
LOG_WARN("loading tae from '%s' failed", sd_ctx_params->taesd_path); LOG_WARN("loading tae from '%s' failed", sd_ctx_params->taesd_path);
} } else {
use_tae = true; use_tae = true;
} }
}
if (strlen(SAFE_STR(sd_ctx_params->embeddings_connectors_path)) > 0) { if (strlen(SAFE_STR(sd_ctx_params->embeddings_connectors_path)) > 0) {
LOG_INFO("loading embeddings connectors from '%s'", sd_ctx_params->embeddings_connectors_path); LOG_INFO("loading embeddings connectors from '%s'", sd_ctx_params->embeddings_connectors_path);