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

Function isSonnet1mUnavailable

src/commands/model/model.tsx:240–245  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

238 return !checkOpus1mAccess() && !isOpus1mMergeEnabled() && m.includes('opus') && m.includes('[1m]');
239}
240function isSonnet1mUnavailable(model: string): boolean {
241 const m = model.toLowerCase();
242 // Warn about Sonnet and Sonnet 4.6, but not Sonnet 4.5 since that had
243 // a different access criteria.
244 return !checkSonnet1mAccess() && (m.includes('sonnet[1m]') || m.includes('sonnet-4-6[1m]'));
245}
246function ShowModelAndClose(t0) {
247 const {
248 onDone

Callers 1

handleModelChangeFunction · 0.85

Calls 1

checkSonnet1mAccessFunction · 0.85

Tested by

no test coverage detected