feat(server): do not parse lora fromt client-side prompts (#1083)

This commit is contained in:
leejet authored and GitHub committed 2025-12-13 14:27:47 +08:00
1 parent 6888fcb581
commit 15d0f82760
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -425,7 +425,7 @@ int main(int argc, const char** argv) {
return;
}
if (!gen_params.process_and_check(IMG_GEN, ctx_params.lora_model_dir)) {
if (!gen_params.process_and_check(IMG_GEN, "")) {
res.status = 400;
res.set_content(R"({"error":"invalid params"})", "application/json");
return;
@@ -605,7 +605,7 @@ int main(int argc, const char** argv) {
return;
}
if (!gen_params.process_and_check(IMG_GEN, ctx_params.lora_model_dir)) {
if (!gen_params.process_and_check(IMG_GEN, "")) {
res.status = 400;
res.set_content(R"({"error":"invalid params"})", "application/json");
return;