mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	* consolidated endpoints, added live configuration * added ml settings to server * added settings dashboard * updated deps, fixed typos * simplified modelconfig updated tests * Added ml setting accordion for admin page updated tests * merge `clipText` and `clipVision` * added face distance setting clarified setting * add clip mode in request, dropdown for face models * polished ml settings updated descriptions * update clip field on error * removed unused import * add description for image classification threshold * pin safetensors for arm wheel updated poetry lock * moved dto * set model type only in ml repository * revert form-data package install use fetch instead of axios * added slotted description with link updated facial recognition description clarified effect of disabling tasks * validation before model load * removed unnecessary getconfig call * added migration * updated api updated api updated api --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			689 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			689 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { ClassificationConfig, CLIPConfig, RecognitionConfig } from '@app/domain';
 | 
						|
import { Type } from 'class-transformer';
 | 
						|
import { IsBoolean, IsObject, IsUrl, ValidateIf, ValidateNested } from 'class-validator';
 | 
						|
 | 
						|
export class SystemConfigMachineLearningDto {
 | 
						|
  @IsBoolean()
 | 
						|
  enabled!: boolean;
 | 
						|
 | 
						|
  @IsUrl({ require_tld: false })
 | 
						|
  @ValidateIf((dto) => dto.enabled)
 | 
						|
  url!: string;
 | 
						|
 | 
						|
  @Type(() => ClassificationConfig)
 | 
						|
  @ValidateNested()
 | 
						|
  @IsObject()
 | 
						|
  classification!: ClassificationConfig;
 | 
						|
 | 
						|
  @Type(() => CLIPConfig)
 | 
						|
  @ValidateNested()
 | 
						|
  @IsObject()
 | 
						|
  clip!: CLIPConfig;
 | 
						|
 | 
						|
  @Type(() => RecognitionConfig)
 | 
						|
  @ValidateNested()
 | 
						|
  @IsObject()
 | 
						|
  facialRecognition!: RecognitionConfig;
 | 
						|
}
 |