mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
Fix undefined reasoning append on continue
This commit is contained in:
parent
d2cc8b36b8
commit
cc7355358d
@ -5927,6 +5927,15 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
|
||||
chat[chat.length - 1]['extra'] = {};
|
||||
}
|
||||
|
||||
// Coerce null/undefined to empty string
|
||||
if (!chat[chat.length - 1]['extra']['reasoning']) {
|
||||
chat[chat.length - 1]['extra']['reasoning'] = '';
|
||||
}
|
||||
|
||||
if (!reasoning) {
|
||||
reasoning = '';
|
||||
}
|
||||
|
||||
let oldMessage = '';
|
||||
const generationFinished = new Date();
|
||||
const img = extractImageFromMessage(getMessage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user