forked from React-Group/interstellar_ai
Changed the local storage of API keys for reassons
This commit is contained in:
parent
10b37fdad4
commit
43fdeb815b
1 changed files with 12 additions and 12 deletions
|
@ -90,8 +90,8 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
const [selectedTheme, setSelectedTheme] = useState(() => localStorage.getItem('selectedTheme') || 'default');
|
||||
|
||||
// API Keys
|
||||
const [laPlateforme, setLaPlateforme] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-la-plateforme').trim());
|
||||
const [openAI, setOpenAI] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-openai').trim());
|
||||
const [mistral, setmistral] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-la-plateforme').trim());
|
||||
const [openai, setopenai] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-openai').trim());
|
||||
const [anthropic, setAnthropic] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-anthropic').trim());
|
||||
const [google, setGoogle] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-google').trim());
|
||||
|
||||
|
@ -142,8 +142,8 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
fontSize,
|
||||
burgerMenu,
|
||||
selectedTheme,
|
||||
laPlateforme,
|
||||
openAI,
|
||||
mistral,
|
||||
openai,
|
||||
anthropic,
|
||||
google,
|
||||
};
|
||||
|
@ -192,8 +192,8 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
fontSize,
|
||||
burgerMenu,
|
||||
selectedTheme,
|
||||
laPlateforme,
|
||||
openAI,
|
||||
mistral,
|
||||
openai,
|
||||
anthropic,
|
||||
google,
|
||||
]);
|
||||
|
@ -938,16 +938,16 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
<label>La Plateforme</label>
|
||||
<input
|
||||
type="text"
|
||||
value={laPlateforme}
|
||||
onChange={(e) => setLaPlateforme(e.target.value)}
|
||||
value={mistral}
|
||||
onChange={(e) => setmistral(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div className="settings-option">
|
||||
<label>OpenAI</label>
|
||||
<input
|
||||
type="text"
|
||||
value={openAI}
|
||||
onChange={(e) => setOpenAI(e.target.value)}
|
||||
value={openai}
|
||||
onChange={(e) => setopenai(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div className="settings-option">
|
||||
|
@ -1030,8 +1030,8 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
|||
openSourceMode,
|
||||
|
||||
// API Keys
|
||||
laPlateforme,
|
||||
openAI,
|
||||
mistral,
|
||||
openai,
|
||||
anthropic,
|
||||
google
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue