Add trim_stop to koboldcpp requests Fixes #3143
| @@ -1268,6 +1268,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate, | ||
| 1268 | 1268 | |
| 1269 | 1269 | if (settings.type === KOBOLDCPP) { |
| 1270 | 1270 | params.grammar = settings.grammar_string; |
| 1271 | + params.trim_stop = true; | |
| 1271 | 1272 | } |
| 1272 | 1273 | |
| 1273 | 1274 | if (settings.type === HUGGINGFACE) { |