feat(docker-file): use SearXNG URL from env

This commit is contained in:
ItzCrazyKns
2024-09-05 18:40:07 +05:30
parent 07e5615860
commit 1fcd64ad42
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,8 @@ export const getGroqApiKey = () => loadConfig().API_KEYS.GROQ;
export const getAnthropicApiKey = () => loadConfig().API_KEYS.ANTHROPIC;
export const getSearxngApiEndpoint = () => loadConfig().API_ENDPOINTS.SEARXNG;
export const getSearxngApiEndpoint = () =>
process.env.SEARXNG_API_URL || loadConfig().API_ENDPOINTS.SEARXNG;
export const getOllamaApiEndpoint = () => loadConfig().API_ENDPOINTS.OLLAMA;