mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't try to update reasoning for impersonation stream
This commit is contained in:
@@ -236,6 +236,10 @@ export class ReasoningHandler {
|
|||||||
* @returns {boolean} - Returns true if the reasoning was changed, otherwise false
|
* @returns {boolean} - Returns true if the reasoning was changed, otherwise false
|
||||||
*/
|
*/
|
||||||
updateReasoning(messageId, reasoning = null, { persist = false } = {}) {
|
updateReasoning(messageId, reasoning = null, { persist = false } = {}) {
|
||||||
|
if (messageId == -1 || !chat[messageId]) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
reasoning = reasoning ?? this.reasoning;
|
reasoning = reasoning ?? this.reasoning;
|
||||||
reasoning = power_user.trim_spaces ? reasoning.trim() : reasoning;
|
reasoning = power_user.trim_spaces ? reasoning.trim() : reasoning;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user