1
0
Fork 0
mirror of https://gitlab.com/niansa/discord_llama.git synced 2025-03-06 20:48:25 +01:00

Fixed clean_string

This commit is contained in:
niansa 2023-03-28 13:59:32 +00:00
parent 4b8d3fe169
commit 766700602b

View file

@ -75,7 +75,7 @@ class LLM {
std::string clean_string(const std::string& str) {
std::string fres;
for (const auto c : str) {
if (c >= 0x20 && c <= 0x7E
if ((c >= 0x20 && c <= 0x7E)
|| c == '\n'
|| c == "ä"[0] || c == "ä"[1] || c == "ä"[2]
|| c == "ö"[0] || c == "ö"[1] || c == "ö"[2]