| 1432 | 1432 | } |
| 1433 | 1433 | |
| 1434 | 1434 | /** |
| 1435 | + * Checks if the limit of reasoning additions has been reached. |
| 1436 | + * @returns {boolean} True if the limit of reasoning additions has been reached, false otherwise. |
| 1437 | + */ |
| 1438 | + isLimitReached() { |
| 1439 | + if (!power_user.reasoning.add_to_prompts) { |
| 1440 | + return true; |
| 1441 | + } |
| 1442 | + |
| 1443 | + return this.counter >= power_user.reasoning.max_additions; |
| 1444 | + } |
| 1445 | + |
| 1446 | + /** |
| 1435 | 1447 | * Add reasoning to a message according to the power user settings. |
| 1436 | 1448 | * @param {string} content Message content |
| 1437 | 1449 | * @param {string} reasoning Message reasoning |