feat: add copilot setting to config

refactor: move getConfig to actions, extracted Settings
This commit is contained in:
Justin Luoma 2024-05-25 08:04:40 -04:00
parent d788ca8eba
commit 79d4d87f24
10 changed files with 140 additions and 113 deletions

View file

@ -4,6 +4,7 @@ import {
getAvailableEmbeddingModelProviders,
} from '../lib/providers';
import {
getCopilotEnabled,
getGroqApiKey,
getOllamaApiEndpoint,
getOpenaiApiKey,
@ -38,6 +39,7 @@ router.get('/', async (_, res) => {
config['openaiApiKey'] = getOpenaiApiKey();
config['ollamaApiUrl'] = getOllamaApiEndpoint();
config['groqApiKey'] = getGroqApiKey();
config['copilotEnabled'] = getCopilotEnabled();
res.status(200).json(config);
});