mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Backfill imported bias entry ids
This commit is contained in:
@ -3733,6 +3733,9 @@ async function onLogitBiasPresetImportFileChange(e) {
|
||||
if (typeof entry == 'object' && entry !== null) {
|
||||
if (Object.hasOwn(entry, 'text') &&
|
||||
Object.hasOwn(entry, 'value')) {
|
||||
if (!entry.id) {
|
||||
entry.id = uuidv4();
|
||||
}
|
||||
validEntries.push(entry);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user