MCPcopy Create free account
hub / github.com/Noumena-Network/code / isFastModeSupportedByModel

Function isFastModeSupportedByModel

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

Source from the content-addressed store, hash-verified

166}
167
168export function isFastModeSupportedByModel(
169 modelSetting: ModelSetting,
170): boolean {
171 if (!isFastModeEnabled()) {
172 return false
173 }
174 const model = modelSetting ?? getDefaultMainLoopModelSetting()
175 const parsedModel = parseUserSpecifiedModel(model)
176 return parsedModel.toLowerCase().includes('opus-4-6')
177}
178
179// --- Fast mode runtime state ---
180// 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