diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 12ee4ce2d..c94a88541 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -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); } }