This commit is contained in:
Christian Hapke 2025-07-22 18:28:11 +02:00 committed by GitHub
commit 30c6f8aa85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 2 deletions

View file

@ -31,6 +31,8 @@ interface Config {
};
OLLAMA: {
API_URL: string;
API_KEY: string;
MODEL_NAME: string;
};
DEEPSEEK: {
API_KEY: string;
@ -85,6 +87,8 @@ export const getSearxngApiEndpoint = () =>
process.env.SEARXNG_API_URL || loadConfig().API_ENDPOINTS.SEARXNG;
export const getOllamaApiEndpoint = () => loadConfig().MODELS.OLLAMA.API_URL;
export const getOllamaApiKey = () => loadConfig().MODELS.OLLAMA.API_KEY;
export const getOllamaModelName = () => loadConfig().MODELS.OLLAMA.MODEL_NAME;
export const getDeepseekApiKey = () => loadConfig().MODELS.DEEPSEEK.API_KEY;