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