From 1d344266aace878ea9d8bb4f5b57b21bcd2a6fe5 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns Date: Thu, 2 May 2024 15:04:33 +0530 Subject: [PATCH] feat(config): fix typo --- src/routes/config.ts | 4 ++-- ui/components/SettingsDialog.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/config.ts b/src/routes/config.ts index 9518c5f..1bb9246 100644 --- a/src/routes/config.ts +++ b/src/routes/config.ts @@ -24,7 +24,7 @@ router.get('/', async (_, res) => { config['providers'][provider] = Object.keys(providers[provider]); } - config['openeaiApiKey'] = getOpenaiApiKey(); + config['openaiApiKey'] = getOpenaiApiKey(); config['ollamaApiUrl'] = getOllamaApiEndpoint(); config['groqApiKey'] = getGroqApiKey(); @@ -36,7 +36,7 @@ router.post('/', async (req, res) => { const updatedConfig = { API_KEYS: { - OPENAI: config.openeaiApiKey, + OPENAI: config.openaiApiKey, GROQ: config.groqApiKey, }, API_ENDPOINTS: { diff --git a/ui/components/SettingsDialog.tsx b/ui/components/SettingsDialog.tsx index 8549481..16e57de 100644 --- a/ui/components/SettingsDialog.tsx +++ b/ui/components/SettingsDialog.tsx @@ -6,7 +6,7 @@ interface SettingsType { providers: { [key: string]: string[]; }; - openeaiApiKey: string; + openaiApiKey: string; groqApiKey: string; ollamaApiUrl: string; } @@ -173,11 +173,11 @@ const SettingsDialog = ({ setConfig({ ...config, - openeaiApiKey: e.target.value, + openaiApiKey: e.target.value, }) } className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm"