Add OpenaiURL
This commit is contained in:
parent
476303f52b
commit
e980945d59
4 changed files with 159 additions and 168 deletions
|
|
@ -16,6 +16,7 @@ interface Config {
|
|||
API_ENDPOINTS: {
|
||||
SEARXNG: string;
|
||||
OLLAMA: string;
|
||||
OPENAI: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -41,6 +42,8 @@ export const getSearxngApiEndpoint = () => loadConfig().API_ENDPOINTS.SEARXNG;
|
|||
|
||||
export const getOllamaApiEndpoint = () => loadConfig().API_ENDPOINTS.OLLAMA;
|
||||
|
||||
export const getOpenaiApiEndpoint = () => loadConfig().API_ENDPOINTS.OPENAI;
|
||||
|
||||
export const updateConfig = (config: RecursivePartial<Config>) => {
|
||||
const currentConfig = loadConfig();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue