feat: support deepinfra as a service provider

This commit is contained in:
marty1885
2024-12-06 16:35:41 +08:00
parent 2c5ca94b3c
commit b0fba3d5c7
5 changed files with 100 additions and 0 deletions

View File

@ -15,6 +15,7 @@ interface Config {
GROQ: string;
ANTHROPIC: string;
GEMINI: string;
DEEPINFRA: string;
};
API_ENDPOINTS: {
SEARXNG: string;
@ -46,6 +47,8 @@ export const getAnthropicApiKey = () => loadConfig().API_KEYS.ANTHROPIC;
export const getGeminiApiKey = () => loadConfig().API_KEYS.GEMINI;
export const getDeepInftaApiKeys = () => loadConfig().API_KEYS.DEEPINFRA;
export const getSearxngApiEndpoint = () =>
process.env.SEARXNG_API_URL || loadConfig().API_ENDPOINTS.SEARXNG;