feat(config): use uppercase keywords

This commit is contained in:
ItzCrazyKns 2024-11-28 20:37:13 +05:30
parent 8e645b73c2
commit b175dd32f4

View file

@ -14,7 +14,7 @@ interface Config {
OPENAI: string; OPENAI: string;
GROQ: string; GROQ: string;
ANTHROPIC: string; ANTHROPIC: string;
Gemini: string; GEMINI: string;
}; };
API_ENDPOINTS: { API_ENDPOINTS: {
SEARXNG: string; SEARXNG: string;
@ -44,7 +44,7 @@ export const getGroqApiKey = () => loadConfig().API_KEYS.GROQ;
export const getAnthropicApiKey = () => loadConfig().API_KEYS.ANTHROPIC; export const getAnthropicApiKey = () => loadConfig().API_KEYS.ANTHROPIC;
export const getGeminiApiKey = () => loadConfig().API_KEYS.Gemini; export const getGeminiApiKey = () => loadConfig().API_KEYS.GEMINI;
export const getSearxngApiEndpoint = () => export const getSearxngApiEndpoint = () =>
process.env.SEARXNG_API_URL || loadConfig().API_ENDPOINTS.SEARXNG; process.env.SEARXNG_API_URL || loadConfig().API_ENDPOINTS.SEARXNG;