()
| 146 | } |
| 147 | |
| 148 | export function shouldEnableThinkingByDefault(): boolean { |
| 149 | if (process.env.MAX_THINKING_TOKENS) { |
| 150 | return parseInt(process.env.MAX_THINKING_TOKENS, 10) > 0 |
| 151 | } |
| 152 | |
| 153 | const { settings } = getSettingsWithErrors() |
| 154 | if (settings.alwaysThinkingEnabled === false) { |
| 155 | return false |
| 156 | } |
| 157 | |
| 158 | // IMPORTANT: Do not change default thinking enabled value without notifying |
| 159 | // the model launch DRI and research. This can greatly affect model quality and |
| 160 | // bashing. |
| 161 | |
| 162 | // Enable thinking by default unless explicitly disabled. |
| 163 | return true |
| 164 | } |
no test coverage detected