Merge branch 'release' into staging

This commit is contained in:
Cohee
2024-12-04 01:35:50 +02:00

View File

@ -1340,6 +1340,9 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
'dry_sequence_breakers': sequenceBreakers, 'dry_sequence_breakers': sequenceBreakers,
}; };
params = Object.assign(params, llamaCppParams); params = Object.assign(params, llamaCppParams);
if (!Array.isArray(sequenceBreakers) || sequenceBreakers.length === 0) {
delete params.dry_sequence_breakers;
}
} }
eventSource.emitAndWait(event_types.TEXT_COMPLETION_SETTINGS_READY, params); eventSource.emitAndWait(event_types.TEXT_COMPLETION_SETTINGS_READY, params);