Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit e234418

Browse files
authored
add default case
1 parent 9b80107 commit e234418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/llamaCPP.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ void llamaCPP::chatCompletion(
198198
data["prompt"] = formatted_output;
199199
for (const auto &stop_word : (*jsonBody)["stop"]) {
200200
stopWords.push_back(stop_word.asString());
201-
// Ensure success case for chatML
202-
stopWords.push_back("<|im_end|>");
203201
}
204202
// specify default stop words
203+
// Ensure success case for chatML
204+
stopWords.push_back("<|im_end|>");
205205
stopWords.push_back(nitro_utils::rtrim(user_prompt));
206206
data["stop"] = stopWords;
207207
}

0 commit comments

Comments
 (0)