mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	* Remove device config and use model size to configure device used * Don't show Frigate+ submission when in progress * Add docs link for bounding box colors
		
			
				
	
	
		
			18 lines
		
	
	
		
			466 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			466 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import Optional
 | 
						|
 | 
						|
from pydantic import Field
 | 
						|
 | 
						|
from .base import FrigateBaseModel
 | 
						|
 | 
						|
__all__ = ["SemanticSearchConfig"]
 | 
						|
 | 
						|
 | 
						|
class SemanticSearchConfig(FrigateBaseModel):
 | 
						|
    enabled: bool = Field(default=False, title="Enable semantic search.")
 | 
						|
    reindex: Optional[bool] = Field(
 | 
						|
        default=False, title="Reindex all detections on startup."
 | 
						|
    )
 | 
						|
    model_size: str = Field(
 | 
						|
        default="small", title="The size of the embeddings model used."
 | 
						|
    )
 |