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