Backfill imported bias entry ids

404a217622a1570697138462ebe1220cf2b15209

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -0Ignore whitespace
public/scripts/openai.js+3 -0
@@ -3733,6 +3733,9 @@ async function onLogitBiasPresetImportFileChange(e) {
3733 if (typeof entry == 'object' && entry !== null) {3733 if (typeof entry == 'object' && entry !== null) {
3734 if (Object.hasOwn(entry, 'text') &&3734 if (Object.hasOwn(entry, 'text') &&
3735 Object.hasOwn(entry, 'value')) {3735 Object.hasOwn(entry, 'value')) {
3736 if (!entry.id) {
3737 entry.id = uuidv4();
3738 }
3736 validEntries.push(entry);3739 validEntries.push(entry);
3737 }3740 }
3738 }3741 }