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
@@ -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");