From a20934e6b51380460660fa3541eb8018ba7216fd Mon Sep 17 00:00:00 2001 From: Vali98 Date: Sat, 30 Nov 2024 19:07:10 +0800 Subject: [PATCH] fix: unable to generate locally --- constants/Inference.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)