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

+3
View File
@@ -1349,6 +1349,9 @@ struct SDGenerationParams {
}
void extract_and_remove_lora(const std::string& lora_model_dir) {
if (lora_model_dir.empty()) {
return;
}
static const std::regex re(R"(<lora:([^:>]+):([^>]+)>)");
static const std::vector<std::string> valid_ext = {".pt", ".safetensors", ".gguf"};
std::smatch m;