reuse enum

This commit is contained in:
Josh Hawkins 2025-07-07 08:52:16 -05:00
parent 938c7fbdf6
commit f18cb23071

View File

@ -1,7 +1,9 @@
from typing import List, Literal, Optional, Union
from typing import List, Optional, Union
from pydantic import BaseModel, Field
from frigate.config.classification import TriggerType
class EventsSubLabelBody(BaseModel):
subLabel: str = Field(title="Sub label", max_length=100)
@ -48,6 +50,6 @@ class SubmitPlusBody(BaseModel):
class TriggerEmbeddingBody(BaseModel):
type: Literal["thumbnail", "description"]
type: TriggerType
data: str
threshold: float = Field(default=0.5, ge=0.0, le=1.0)