From 5d4413ff51c3a691220080c5653374a94fca3b21 Mon Sep 17 00:00:00 2001 From: "Khoa.vo" Date: Wed, 7 Jan 2026 19:36:46 +0700 Subject: [PATCH] fix: Update Settings type to remove grok and add meta wrapper props --- lib/store.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/store.ts b/lib/store.ts index 8f353cc..962c7c7 100644 --- a/lib/store.ts +++ b/lib/store.ts @@ -82,14 +82,12 @@ interface AppState { imageCount: number; theme: 'light' | 'dark'; // Provider selection - provider: 'whisk' | 'grok' | 'meta'; + provider: 'whisk' | 'meta'; // Whisk (Google) whiskCookies: string; - // Grok (xAI) - xLmiler/grok2api_python backend - grokApiUrl: string; - grokApiKey: string; - grokCookies: string; // Meta AI + useMetaFreeWrapper: boolean; + metaFreeWrapperUrl: string; metaCookies: string; facebookCookies: string; }; @@ -186,9 +184,8 @@ export const useStore = create()( theme: 'dark', provider: 'whisk', whiskCookies: '', - grokApiUrl: 'http://localhost:3001', - grokApiKey: '', - grokCookies: '', + useMetaFreeWrapper: true, + metaFreeWrapperUrl: 'http://localhost:8000', metaCookies: '', facebookCookies: '' },