From b79f27bd02d25fb0a06d43dff8b36b7472489fa7 Mon Sep 17 00:00:00 2001 From: Nipurn123 <154745876+Nipurn123@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:48:34 +0530 Subject: [PATCH] Update config.ts --- src/routes/config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/config.ts b/src/routes/config.ts index f255560..e9cbf5c 100644 --- a/src/routes/config.ts +++ b/src/routes/config.ts @@ -7,6 +7,7 @@ import { getGroqApiKey, getOllamaApiEndpoint, getAnthropicApiKey, + getGeminiApiKey, getOpenaiApiKey, updateConfig, } from '../config'; @@ -40,6 +41,7 @@ router.get('/', async (_, res) => { config['ollamaApiUrl'] = getOllamaApiEndpoint(); config['anthropicApiKey'] = getAnthropicApiKey(); config['groqApiKey'] = getGroqApiKey(); + config['geminiApiKey'] = getGeminiApiKey(); res.status(200).json(config); }); @@ -52,6 +54,7 @@ router.post('/', async (req, res) => { OPENAI: config.openaiApiKey, GROQ: config.groqApiKey, ANTHROPIC: config.anthropicApiKey, + Gemini: config.geminiApiKey, }, API_ENDPOINTS: { OLLAMA: config.ollamaApiUrl,