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

Function getInitialFastModeSetting

src/utils/fastMode.ts:150–166  ·  view source on GitHub ↗
(model: ModelSetting)

Source from the content-addressed store, hash-verified

148}
149
150export function getInitialFastModeSetting(model: ModelSetting): boolean {
151 if (!isFastModeEnabled()) {
152 return false
153 }
154 if (!isFastModeAvailable()) {
155 return false
156 }
157 if (!isFastModeSupportedByModel(model)) {
158 return false
159 }
160 const settings = getInitialSettings()
161 // If per-session opt-in is required, fast mode starts off each session
162 if (settings.fastModePerSessionOptIn) {
163 return false
164 }
165 return settings.fastMode === true
166}
167
168export function isFastModeSupportedByModel(
169 modelSetting: ModelSetting,

Callers 1

runFunction · 0.85

Calls 4

isFastModeEnabledFunction · 0.85
isFastModeAvailableFunction · 0.85
getInitialSettingsFunction · 0.50

Tested by

no test coverage detected