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

Function modelSupportsAdvisor

src/utils/advisor.ts:89–96  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

87// @[MODEL LAUNCH]: Add the new model if it supports the advisor tool.
88// Checks whether the main loop model supports calling the advisor tool.
89export function modelSupportsAdvisor(model: string): boolean {
90 const m = model.toLowerCase()
91 return (
92 m.includes('opus-4-6') ||
93 m.includes('sonnet-4-6') ||
94 process.env.USER_TYPE === 'ant'
95 )
96}
97
98// @[MODEL LAUNCH]: Add the new model if it can serve as an advisor model.
99export function isValidAdvisorModel(model: string): boolean {

Callers 3

runFunction · 0.85
callFunction · 0.85
queryModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected