Backfill imported bias entry ids

404a217622a1570697138462ebe1220cf2b15209

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

1 files changed, +3 -0Showing whitespace changes
public/scripts/openai.js+3 -0
@@ -3733,6 +3733,9 @@ async function onLogitBiasPresetImportFileChange(e) {
37333733 if (typeof entry == 'object' && entry !== null) {
37343734 if (Object.hasOwn(entry, 'text') &&
37353735 Object.hasOwn(entry, 'value')) {
3736+ if (!entry.id) {
3737+ entry.id = uuidv4();
3738+ }
37363739 validEntries.push(entry);
37373740 }
37383741 }