MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getOpus46Option

Function getOpus46Option

src/utils/model/modelOptions.ts:176–188  ·  view source on GitHub ↗
(fastMode = false)

Source from the content-addressed store, hash-verified

174}
175
176export function getOpus46Option(fastMode = false): ModelOption {
177 // Always use the canonical 4.6 model string (not the 'opus' alias, which
178 // resolves via getDefaultOpusModel() to opus47 on firstParty). Users
179 // selecting "Opus 4.6" must get 4.6 actually dispatched, not alias-routed
180 // to 4.7. The same string is correct for 3P (getModelStrings maps per
181 // provider).
182 return {
183 value: getModelStrings().opus46,
184 label: 'Opus 4.6',
185 description: `Opus 4.6 · Previous generation Opus${getOpusPricingSuffix(fastMode)}`,
186 descriptionForModel: 'Opus 4.6 - previous generation Opus model',
187 }
188}
189
190export function getSonnet46_1MOption(): ModelOption {
191 const is3P = getAPIProvider() !== 'firstParty'

Callers 1

Calls 2

getOpusPricingSuffixFunction · 0.85
getModelStringsFunction · 0.70

Tested by

no test coverage detected