Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix settings command

Joe Goldin5914dc028a9f
diff --git a/screenpipe-app-tauri/components/settings.tsx b/screenpipe-app-tauri/components/settings.tsx
index 65d1de584..06c06f0cd 100644
--- a/screenpipe-app-tauri/components/settings.tsx
+++ b/screenpipe-app-tauri/components/settings.tsx
@@ -40,12 +40,21 @@ export function Settings({ className }: { className?: string }) {
setLocalSettings((prev) => ({ ...prev, aiUrl: newValue }));
updateSettings({ aiUrl: newValue });
};
+
const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const newValue = e.target.value;
setLocalSettings((prev) => ({ ...prev, openaiApiKey: newValue }));
updateSettings({ openaiApiKey: newValue });
};
+ const handleDeepgramApiKeyChange = (
+ e: React.ChangeEvent<HTMLInputElement>
+ ) => {
+ const newValue = e.target.value;
+ setLocalSettings((prev) => ({ ...prev, deepgramApiKey: newValue }));
+ updateSettings({ deepgramApiKey: newValue });
+ };
+
const handleModelChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const newValue = e.target.value;
setLocalSettings((prev) => ({ ...prev, aiModel: newValue }));