feat(providers): add Groq provider

This commit is contained in:
ItzCrazyKns
2024-05-01 19:43:06 +05:30
parent 6e304e7051
commit edc40d8fe6
5 changed files with 86 additions and 5 deletions

View File

@ -13,6 +13,7 @@ interface Config {
};
API_KEYS: {
OPENAI: string;
GROQ: string;
};
API_ENDPOINTS: {
SEARXNG: string;
@ -41,6 +42,8 @@ export const getChatModel = () => loadConfig().GENERAL.CHAT_MODEL;
export const getOpenaiApiKey = () => loadConfig().API_KEYS.OPENAI;
export const getGroqApiKey = () => loadConfig().API_KEYS.GROQ;
export const getSearxngApiEndpoint = () => loadConfig().API_ENDPOINTS.SEARXNG;
export const getOllamaApiEndpoint = () => loadConfig().API_ENDPOINTS.OLLAMA;