Fix reasoning error on empty chat

da531f12c212787aa0cf9b960117303cb58b5f6f

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -6004,7 +6004,7 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes,
60046004 }
60056005
60066006 // Coerce null/undefined to empty string
60076007 if (chat.length && !chat[chat.length - 1]['extra']['reasoning']) {
60086008 chat[chat.length - 1]['extra']['reasoning'] = '';
60096009 }
60106010