MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldEnableThinkingByDefault

Function shouldEnableThinkingByDefault

src/utils/thinking.ts:148–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148export 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}

Callers 4

submitMessageMethod · 0.85
runFunction · 0.85
getDefaultAppStateFunction · 0.85

Calls 1

getSettingsWithErrorsFunction · 0.85

Tested by

no test coverage detected