fix: Update Settings type to remove grok and add meta wrapper props
Some checks are pending
CI / build (18.x) (push) Waiting to run
CI / build (20.x) (push) Waiting to run

This commit is contained in:
Khoa.vo 2026-01-07 19:36:46 +07:00
parent 962ff4667c
commit 5d4413ff51

View file

@ -82,14 +82,12 @@ interface AppState {
imageCount: number; imageCount: number;
theme: 'light' | 'dark'; theme: 'light' | 'dark';
// Provider selection // Provider selection
provider: 'whisk' | 'grok' | 'meta'; provider: 'whisk' | 'meta';
// Whisk (Google) // Whisk (Google)
whiskCookies: string; whiskCookies: string;
// Grok (xAI) - xLmiler/grok2api_python backend
grokApiUrl: string;
grokApiKey: string;
grokCookies: string;
// Meta AI // Meta AI
useMetaFreeWrapper: boolean;
metaFreeWrapperUrl: string;
metaCookies: string; metaCookies: string;
facebookCookies: string; facebookCookies: string;
}; };
@ -186,9 +184,8 @@ export const useStore = create<AppState>()(
theme: 'dark', theme: 'dark',
provider: 'whisk', provider: 'whisk',
whiskCookies: '', whiskCookies: '',
grokApiUrl: 'http://localhost:3001', useMetaFreeWrapper: true,
grokApiKey: '', metaFreeWrapperUrl: 'http://localhost:8000',
grokCookies: '',
metaCookies: '', metaCookies: '',
facebookCookies: '' facebookCookies: ''
}, },