This commit is contained in:
Cohee
2023-06-16 12:55:08 +03:00
4 changed files with 4 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ function canUseKoboldStopSequence(version) {
}
function canUseKoboldStreaming(koboldVersion) {
if (koboldVersion.result == 'KoboldCpp') {
if (koboldVersion && koboldVersion.result == 'KoboldCpp') {
return (koboldVersion.version || '0.0').localeCompare(MIN_STREAMING_KCPPVERSION, undefined, { numeric: true, sensitivity: 'base' }) > -1;
} else return false;
}