diff --git a/constants/Inference.ts b/constants/Inference.ts index 77d0d69..d5d8577 100644 --- a/constants/Inference.ts +++ b/constants/Inference.ts @@ -66,7 +66,7 @@ export const generateResponse = async (swipeId: number) => { const APIType = getString(Global.APIType) const legacy = mmkv.getBoolean(AppSettings.UseLegacyAPI) const apiState = appMode === AppMode.LOCAL ? APIState[API.LOCAL] : APIState?.[APIType as API] - if (legacy) { + if (legacy ?? appMode === AppMode.LOCAL) { if (apiState) await BackgroundService.start(apiState.inference, completionTaskOptions) else { Logger.log('An invalid API was somehow chosen, this is bad!', true)