mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
chore(server): duplication default settings (#9781)
This commit is contained in:
@@ -256,8 +256,8 @@ export const defaults = Object.freeze<SystemConfig>({
|
||||
modelName: 'ViT-B-32__openai',
|
||||
},
|
||||
duplicateDetection: {
|
||||
enabled: false,
|
||||
maxDistance: 0.03,
|
||||
enabled: true,
|
||||
maxDistance: 0.0155,
|
||||
},
|
||||
facialRecognition: {
|
||||
enabled: true,
|
||||
|
||||
@@ -214,7 +214,7 @@ describe(SearchService.name, () => {
|
||||
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
|
||||
assetId: assetStub.hasEmbedding.id,
|
||||
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
|
||||
maxDistance: 0.03,
|
||||
maxDistance: 0.0155,
|
||||
type: assetStub.hasEmbedding.type,
|
||||
userIds: [assetStub.hasEmbedding.ownerId],
|
||||
});
|
||||
@@ -240,7 +240,7 @@ describe(SearchService.name, () => {
|
||||
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
|
||||
assetId: assetStub.hasEmbedding.id,
|
||||
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
|
||||
maxDistance: 0.03,
|
||||
maxDistance: 0.0155,
|
||||
type: assetStub.hasEmbedding.type,
|
||||
userIds: [assetStub.hasEmbedding.ownerId],
|
||||
});
|
||||
|
||||
@@ -149,7 +149,7 @@ describe(ServerInfoService.name, () => {
|
||||
it('should respond the server features', async () => {
|
||||
await expect(sut.getFeatures()).resolves.toEqual({
|
||||
smartSearch: true,
|
||||
duplicateDetection: false,
|
||||
duplicateDetection: true,
|
||||
facialRecognition: true,
|
||||
map: true,
|
||||
reverseGeocoding: true,
|
||||
|
||||
@@ -81,8 +81,8 @@ const updatedConfig = Object.freeze<SystemConfig>({
|
||||
modelName: 'ViT-B-32__openai',
|
||||
},
|
||||
duplicateDetection: {
|
||||
enabled: false,
|
||||
maxDistance: 0.03,
|
||||
enabled: true,
|
||||
maxDistance: 0.0155,
|
||||
},
|
||||
facialRecognition: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user