server : ignore empty stop strings (#32093)

This commit is contained in:
Roshan Kumar authored and GitHub committed 2026-11-15 17:23:05 +01:00
1 parent b54752df40
commit 56fd8a375f
5 files changed
+59 -2

No files matched your search

+4
View File
@@ -692,6 +692,10 @@ struct server_slot {
size_t stop_pos = std::string::npos;
for (const std::string & word : task->params.antiprompt) {
if (word.empty()) {
continue;
}
size_t pos;
if (is_full_stop) {