Fixed tons of warnings and clazy findings (#811)

This commit is contained in:
niansa/tuxifan
2023-06-02 21:46:41 +02:00
committed by GitHub
parent d6a70ddb5f
commit f3564ac6b9
12 changed files with 28 additions and 25 deletions

View File

@@ -1013,7 +1013,7 @@ void GPTJ::prompt(const std::string &prompt,
return;
// Check if it partially matches our reverse prompts and if so, cache
for (auto s : reversePrompts) {
for (const auto &s : reversePrompts) {
if (s.compare(0, completed.size(), completed) == 0) {
foundPartialReversePrompt = true;
cachedResponse = completed;