feat: add --taesd-preview-only to shared context params (#2184)

This commit is contained in:
George authored and GitHub committed 2026-10-22 22:51:59 +08:00
1 parent a77d362318
commit a0c8508e72
6 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ int main(int argc, const char** argv) {
LOG_DEBUG("%s", ctx_params.to_string().c_str());
LOG_DEBUG("%s", default_gen_params.to_string().c_str());
sd_ctx_params_t sd_ctx_params = ctx_params.to_sd_ctx_params_t(false);
sd_ctx_params_t sd_ctx_params = ctx_params.to_sd_ctx_params_t();
ServerModels models;
if (!ctx_params.model_path.empty() || !ctx_params.diffusion_model_path.empty()) {
const auto started = std::chrono::steady_clock::now();
+1 -1
View File
@@ -94,7 +94,7 @@ static void change_model(ServerRuntime& runtime, const httplib::Request& req, ht
*runtime.ctx_params = unload ? models.base_context : std::move(context);
*runtime.default_gen_params = unload ? models.base_defaults : std::move(defaults);
if (!unload) {
auto params = runtime.ctx_params->to_sd_ctx_params_t(false);
auto params = runtime.ctx_params->to_sd_ctx_params_t();
models.context.reset(new_sd_ctx(&params));
if (!models.context) {
throw std::runtime_error("Model initialization failed; check the server log for component compatibility and memory errors");