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

Function isFastModeSupportedByModel

src/utils/fastMode.ts:167–176  ·  view source on GitHub ↗
(
  modelSetting: ModelSetting,
)

Source from the content-addressed store, hash-verified

165}
166
167export function isFastModeSupportedByModel(
168 modelSetting: ModelSetting,
169): boolean {
170 if (!isFastModeEnabled()) {
171 return false
172 }
173 const model = modelSetting ?? getDefaultMainLoopModelSetting()
174 const parsedModel = parseUserSpecifiedModel(model)
175 return parsedModel.toLowerCase().includes('opus-4-6')
176}
177
178// --- Fast mode runtime state ---
179// Separate from user preference (settings.fastMode). This tracks the actual

Callers 12

ConfigFunction · 0.85
PromptInputFunction · 0.85
getFastModeStateFunction · 0.85
ModelPickerWrapperFunction · 0.85
setModelFunction · 0.85
applyFastModeFunction · 0.85
FastModePickerFunction · 0.85
handleFastModeShortcutFunction · 0.85
runHeadlessStreamingFunction · 0.85
queryModelFunction · 0.85
paramsFromContextFunction · 0.85

Calls 3

isFastModeEnabledFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Tested by

no test coverage detected