Fix reasoning error on empty chat
| @@ -6004,7 +6004,7 @@ export async function saveReply(type, getMessage, fromStreaming, title, swipes, | ||
| 6004 | 6004 | } |
| 6005 | 6005 | |
| 6006 | 6006 | // Coerce null/undefined to empty string |
| 6007 | 6007 | if (chat.length && !chat[chat.length - 1]['extra']['reasoning']) { |
| 6008 | 6008 | chat[chat.length - 1]['extra']['reasoning'] = ''; |
| 6009 | 6009 | } |
| 6010 | 6010 | |