mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-27 17:17:40 +03:00
reuse enum
This commit is contained in:
parent
938c7fbdf6
commit
f18cb23071
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user