server : ignore empty stop strings (#32093)
This commit is contained in:
1 parent
b54752df40
commit
56fd8a375f
5 files changed
+59
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user