refactor: remove getCustomConfig usage and use app config in file citations

This commit is contained in:
Danny Avila 2025-08-18 13:17:31 -04:00
parent 46f9c90223
commit 8525c8df36
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
4 changed files with 29 additions and 30 deletions

View file

@ -20,17 +20,17 @@ jest.mock('@librechat/api', () => ({
checkAccess: jest.fn().mockResolvedValue(true),
}));
jest.mock('~/server/services/Config/getCustomConfig', () => ({
getCustomConfig: jest.fn().mockResolvedValue({
endpoints: {
agents: {
maxCitations: 30,
maxCitationsPerFile: 5,
minRelevanceScore: 0.45,
},
jest.mock('~/cache/getLogStores', () => () => ({
get: jest.fn().mockResolvedValue({
agents: {
maxCitations: 30,
maxCitationsPerFile: 5,
minRelevanceScore: 0.45,
},
fileStrategy: 'local',
}),
set: jest.fn(),
delete: jest.fn(),
}));
jest.mock('~/config', () => ({