feat(app): add jina reader

This commit is contained in:
wellCh4n
2025-02-19 12:32:32 +08:00
parent 4c73caadf6
commit dd2f4effca
3 changed files with 83 additions and 10 deletions

View File

@ -35,6 +35,9 @@ interface Config {
API_ENDPOINTS: {
SEARXNG: string;
};
API_KEYS: {
JINA: string;
}
}
type RecursivePartial<T> = {
@ -75,6 +78,9 @@ export const getCustomOpenaiApiUrl = () =>
export const getCustomOpenaiModelName = () =>
loadConfig().MODELS.CUSTOM_OPENAI.MODEL_NAME;
export const getJinaApiKey = () =>
loadConfig().API_KEYS.JINA;
const mergeConfigs = (current: any, update: any): any => {
if (update === null || update === undefined) {
return current;