Don't try to update reasoning for impersonation stream

This commit is contained in:
Cohee
2025-02-13 10:55:32 +00:00
parent 54a9e0afee
commit d6bf3439b4

View File

@@ -236,6 +236,10 @@ export class ReasoningHandler {
* @returns {boolean} - Returns true if the reasoning was changed, otherwise false
*/
updateReasoning(messageId, reasoning = null, { persist = false } = {}) {
if (messageId == -1 || !chat[messageId]) {
return false;
}
reasoning = reasoning ?? this.reasoning;
reasoning = power_user.trim_spaces ? reasoning.trim() : reasoning;