Skip to content

Commit

Permalink
fix url type
Browse files Browse the repository at this point in the history
  • Loading branch information
HRashidi committed May 13, 2024
1 parent eab88c8 commit 55774fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aana/models/pydantic/video_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down

0 comments on commit 55774fd

Please sign in to comment.