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

Function onSetMaxThinkingTokens

src/cli/print.ts:3980–3991  ·  view source on GitHub ↗
(maxTokens)

Source from the content-addressed store, hash-verified

3978 setMainLoopModelOverride(resolved)
3979 },
3980 onSetMaxThinkingTokens(maxTokens) {
3981 if (maxTokens === null) {
3982 options.thinkingConfig = undefined
3983 } else if (maxTokens === 0) {
3984 options.thinkingConfig = { type: 'disabled' }
3985 } else {
3986 options.thinkingConfig = {
3987 type: 'enabled',
3988 budgetTokens: maxTokens,
3989 }
3990 }
3991 },
3992 onStateChange(state, detail) {
3993 if (state === 'failed') {
3994 bridgeFailureDetail = detail

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected