MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getModelCapability

Function getModelCapability

src/utils/model/modelCapabilities.ts:78–86  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

76)
77
78export function getModelCapability(model: string): ModelCapability | undefined {
79 if (!isModelCapabilitiesEligible()) return undefined
80 const cached = loadCache(getCachePath())
81 if (!cached || cached.length === 0) return undefined
82 const m = model.toLowerCase()
83 const exact = cached.find(c => c.id.toLowerCase() === m)
84 if (exact) return exact
85 return cached.find(c => m.includes(c.id.toLowerCase()))
86}
87
88export async function refreshModelCapabilities(): Promise<void> {
89 if (!isModelCapabilitiesEligible()) return

Callers 2

getContextWindowForModelFunction · 0.85
getModelMaxOutputTokensFunction · 0.85

Calls 2

getCachePathFunction · 0.70

Tested by

no test coverage detected