From 55774fd0b2e528106bd501d4af92e289c3e7a551 Mon Sep 17 00:00:00 2001 From: Hossein Rashidi Date: Mon, 13 May 2024 14:15:48 +0200 Subject: [PATCH] fix url type --- aana/models/pydantic/video_input.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aana/models/pydantic/video_input.py b/aana/models/pydantic/video_input.py index 14f43d93..2a5ee1cf 100644 --- a/aana/models/pydantic/video_input.py +++ b/aana/models/pydantic/video_input.py @@ -35,7 +35,11 @@ class VideoInput(BaseModel): """ path: str | None = Field(None, description="The file path of the video.") - url : Annotated[AnyUrl | None , AfterValidator(lambda x: str(x) if x else None), Field(None, description="The URL of the video (supports YouTube videos).")] + url: Annotated[ + AnyUrl | None, + AfterValidator(lambda x: str(x) if x else None), + Field(None, description="The URL of the video (supports YouTube videos)."), + ] content: bytes | None = Field( None, description=(