feat: initialize aivideo project
This commit is contained in:
23
backend/app/modules/video_models/schema.py
Normal file
23
backend/app/modules/video_models/schema.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class VideoModelPayload(BaseModel):
|
||||
model_key: str
|
||||
model_name: str
|
||||
frontend_title: str
|
||||
frontend_description: str = ""
|
||||
default_duration_seconds: int = 8
|
||||
default_ratio: str = "16:9"
|
||||
default_resolution: str = "1280x720"
|
||||
status: int = 1
|
||||
sort_order: int = 0
|
||||
|
||||
|
||||
class BindingPayload(BaseModel):
|
||||
video_model_id: int
|
||||
provider_model_id: int
|
||||
routing_priority: int = 10
|
||||
is_primary: bool = False
|
||||
status: int = 1
|
||||
timeout_seconds_override: int | None = None
|
||||
|
||||
Reference in New Issue
Block a user