()
| 218 | } |
| 219 | |
| 220 | stopWhenReachingTokensLimit() { |
| 221 | if (this.numTokens < this.config.maxTokens) return |
| 222 | |
| 223 | output.print(`AI assistant has reached the limit of ${this.config.maxTokens} tokens in this session. It will be disabled now`) |
| 224 | this.disable() |
| 225 | } |
| 226 | |
| 227 | async writeSteps(input) { |
| 228 | if (!this.isEnabled) return |
no test coverage detected