File size: 892 Bytes
e66c876
 
0978387
4a5f5e1
0978387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4a5f5e1
 
 
0978387
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from pydantic import BaseModel, Field, HttpUrl
from typing import Optional


class YouTubeUploadTask(BaseModel):
    filename: HttpUrl = Field(..., description="URL of the video file to upload")
    title: str = Field(
        ...,
        min_length=100,
        max_length=500,
        description="A good title for the video",
    )
    description: str = Field(
        ...,
        min_length=100,
        max_length=500,
        description="A brief summary of the video's content",
    )
    category_id: str = "22"  # Default to a generic category, update as needed
    privacy: str = "private"
    tags: str = Field(
        ...,
        min_length=100,
        max_length=500,
        description="Best seo tags for youtube based on the story",
    )
    thumbnail: Optional[str] = Field(
        default=None,
        description="Optional image prompt for video thumbnail",
    )