mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
Fix rendering of messages without extra object
This commit is contained in:
parent
d6bf3439b4
commit
1a52d3c293
@ -181,8 +181,11 @@ export class ReasoningHandler {
|
||||
: $(messageIdOrElement)[0];
|
||||
const messageId = Number(messageElement.getAttribute('mesid'));
|
||||
|
||||
if (isNaN(messageId)) return;
|
||||
if (isNaN(messageId) || !chat[messageId]) return;
|
||||
|
||||
if (!chat[messageId].extra) {
|
||||
chat[messageId].extra = {};
|
||||
}
|
||||
const extra = chat[messageId].extra;
|
||||
|
||||
if (extra.reasoning) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user