fix: fix multi loras prompt parse
This commit is contained in:
parent
176a00b606
commit
0d9b801aaa
@ -285,7 +285,7 @@ std::pair<std::unordered_map<std::string, float>, std::string> extract_and_remov
|
||||
filename2multiplier[filename] += multiplier;
|
||||
}
|
||||
|
||||
text = std::regex_replace(text, re, "");
|
||||
text = std::regex_replace(text, re, "", std::regex_constants::format_first_only);
|
||||
}
|
||||
|
||||
return std::make_pair(filename2multiplier, text);
|
||||
|
Loading…
Reference in New Issue
Block a user