feat(opensearch): Add BASE_URL config to support reverse proxy deployments
This commit is contained in:
parent
d839769d7e
commit
85605fe166
5 changed files with 81 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue