mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 11:20:15 +01:00
refactor: remove getCustomConfig usage and use app config in file citations
This commit is contained in:
parent
46f9c90223
commit
8525c8df36
4 changed files with 29 additions and 30 deletions
|
|
@ -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', () => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue