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');
|
const [selectedTheme, setSelectedTheme] = useState(() => localStorage.getItem('selectedTheme') || 'default');
|
||||||
|
|
||||||
// API Keys
|
// API Keys
|
||||||
const [laPlateforme, setLaPlateforme] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-la-plateforme').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 [openai, setopenai] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-openai').trim());
|
||||||
const [anthropic, setAnthropic] = useState(() => getComputedStyle(document.documentElement).getPropertyValue('--online-cheap-anthropic').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());
|
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,
|
fontSize,
|
||||||
burgerMenu,
|
burgerMenu,
|
||||||
selectedTheme,
|
selectedTheme,
|
||||||
laPlateforme,
|
mistral,
|
||||||
openAI,
|
openai,
|
||||||
anthropic,
|
anthropic,
|
||||||
google,
|
google,
|
||||||
};
|
};
|
||||||
|
@ -192,8 +192,8 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
fontSize,
|
fontSize,
|
||||||
burgerMenu,
|
burgerMenu,
|
||||||
selectedTheme,
|
selectedTheme,
|
||||||
laPlateforme,
|
mistral,
|
||||||
openAI,
|
openai,
|
||||||
anthropic,
|
anthropic,
|
||||||
google,
|
google,
|
||||||
]);
|
]);
|
||||||
|
@ -938,16 +938,16 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
<label>La Plateforme</label>
|
<label>La Plateforme</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={laPlateforme}
|
value={mistral}
|
||||||
onChange={(e) => setLaPlateforme(e.target.value)}
|
onChange={(e) => setmistral(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="settings-option">
|
<div className="settings-option">
|
||||||
<label>OpenAI</label>
|
<label>OpenAI</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value={openAI}
|
value={openai}
|
||||||
onChange={(e) => setOpenAI(e.target.value)}
|
onChange={(e) => setopenai(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="settings-option">
|
<div className="settings-option">
|
||||||
|
@ -1030,8 +1030,8 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
|
||||||
openSourceMode,
|
openSourceMode,
|
||||||
|
|
||||||
// API Keys
|
// API Keys
|
||||||
laPlateforme,
|
mistral,
|
||||||
openAI,
|
openai,
|
||||||
anthropic,
|
anthropic,
|
||||||
google
|
google
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue