MCPcopy
hub / github.com/codeaashu/claude-code / modelSupportsMaxEffort

Function modelSupportsMaxEffort

src/utils/effort.ts:53–65  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

51// @[MODEL LAUNCH]: Add the new model to the allowlist if it supports 'max' effort.
52// Per API docs, 'max' is Opus 4.6 only for public models — other models return an error.
53export function modelSupportsMaxEffort(model: string): boolean {
54 const supported3P = get3PModelCapabilityOverride(model, 'max_effort')
55 if (supported3P !== undefined) {
56 return supported3P
57 }
58 if (model.toLowerCase().includes('opus-4-6')) {
59 return true
60 }
61 if (process.env.USER_TYPE === 'ant' && resolveAntModel(model)) {
62 return true
63 }
64 return false
65}
66
67export function isEffortLevel(value: string): value is EffortLevel {
68 return (EFFORT_LEVELS as readonly string[]).includes(value)

Callers 3

ModelPickerFunction · 0.85
resolveAppliedEffortFunction · 0.85
runHeadlessStreamingFunction · 0.85

Calls 1

resolveAntModelFunction · 0.85

Tested by

no test coverage detected