diff --git a/package.json b/package.json index 05a301f..ad870ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "description": "Pile", - "version": "0.9.8", + "version": "0.9.9", "keywords": [ "pile" ], diff --git a/src/renderer/pages/Pile/Settings/AISettingsTabs/index.jsx b/src/renderer/pages/Pile/Settings/AISettingsTabs/index.jsx index 202800f..0933365 100644 --- a/src/renderer/pages/Pile/Settings/AISettingsTabs/index.jsx +++ b/src/renderer/pages/Pile/Settings/AISettingsTabs/index.jsx @@ -9,7 +9,7 @@ import { import { CardIcon, OllamaIcon, BoxOpenIcon } from 'renderer/icons'; import { useIndexContext } from 'renderer/context/IndexContext'; -export default function AISettingTabs() { +export default function AISettingTabs({ APIkey, setCurrentKey }) { const { prompt, setPrompt, @@ -29,20 +29,6 @@ export default function AISettingTabs() { } = useAIContext(); const { currentTheme, setTheme } = usePilesContext(); - const [key, setCurrentKey] = useState(''); - - useEffect(() => { - retrieveKey(); - - if (ollama) { - setPileAIProvider('ollama'); - } - }, [ollama]); - - const retrieveKey = async () => { - const k = await getKey(); - setCurrentKey(k); - }; const handleTabChange = (newValue) => { setPileAIProvider(newValue); @@ -50,15 +36,6 @@ export default function AISettingTabs() { const handleInputChange = (setter) => (e) => setter(e.target.value); - const handleSaveChanges = () => { - if (!key || key == '') { - deleteKey(); - } else { - setKey(key); - } - updateSettings(prompt); - }; - const renderThemes = () => { return Object.entries(availableThemes).map(([theme, colors]) => (