Merge 578de9eb83 into fdaf3af3af
This commit is contained in:
commit
30c6f8aa85
4 changed files with 31 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue