mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-09-20 00:01:32 +00:00
feat(tavily): integrate Tavily search engine with configuration and UI support
This commit is contained in:
@@ -36,6 +36,10 @@ interface Config {
|
||||
};
|
||||
API_ENDPOINTS: {
|
||||
SEARXNG: string;
|
||||
TAVILY: string;
|
||||
};
|
||||
SEARCH: {
|
||||
ENGINE: string;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -64,6 +68,12 @@ export const getGeminiApiKey = () => loadConfig().MODELS.GEMINI.API_KEY;
|
||||
export const getSearxngApiEndpoint = () =>
|
||||
process.env.SEARXNG_API_URL || loadConfig().API_ENDPOINTS.SEARXNG;
|
||||
|
||||
export const getTavilyApiKey = () =>
|
||||
process.env.TAVILY_API_KEY || loadConfig().API_ENDPOINTS.TAVILY;
|
||||
|
||||
export const getSearchEngine = () =>
|
||||
process.env.SEARCH_ENGINE || loadConfig().SEARCH?.ENGINE || 'searxng';
|
||||
|
||||
export const getOllamaApiEndpoint = () => loadConfig().MODELS.OLLAMA.API_URL;
|
||||
|
||||
export const getDeepseekApiKey = () => loadConfig().MODELS.DEEPSEEK.API_KEY;
|
||||
|
Reference in New Issue
Block a user