feat(opensearch): Enhance OpenSearch support for reverse proxy configurations

This commit is contained in:
Willie Zutz 2025-05-08 20:56:48 -06:00
parent f83ee171ef
commit 127f4b9f36
5 changed files with 81 additions and 7 deletions

View file

@ -15,6 +15,7 @@ interface Config {
GENERAL: {
SIMILARITY_MEASURE: string;
KEEP_ALIVE: string;
BASE_URL?: string;
};
MODELS: {
OPENAI: {
@ -70,6 +71,8 @@ export const getSimilarityMeasure = () =>
export const getKeepAlive = () => loadConfig().GENERAL.KEEP_ALIVE;
export const getBaseUrl = () => loadConfig().GENERAL.BASE_URL;
export const getOpenaiApiKey = () => loadConfig().MODELS.OPENAI.API_KEY;
export const getGroqApiKey = () => loadConfig().MODELS.GROQ.API_KEY;