Skip to content

Commit 0e7ba25

Browse files
committed
fix formatting
1 parent 6b2e177 commit 0e7ba25

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/together/resources/videos.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
from typing import Any, Dict, List
4+
import sys
45

56
from together.abstract import api_requestor
67
from together.together_response import TogetherResponse
@@ -14,6 +15,11 @@
1415
VideoResource,
1516
)
1617

18+
if sys.version_info >= (3, 8):
19+
from typing import Literal
20+
else:
21+
from typing_extensions import Literal
22+
1723

1824
class Videos:
1925
def __init__(self, client: TogetherClient) -> None:

src/together/types/videos.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ class CreateVideoBody(BaseModel):
2222
steps: int | None = None # Denoising steps, min 10 max 50, default 20
2323
seed: int | None = None
2424
guidance_scale: float | None = None # Default 8, recommended 6.0-10.0
25-
output_format: Literal["MP4", "WEBM"] | None = None # "MP4" or "WEBM", default "MP4"
25+
output_format: Literal["MP4", "WEBM"] | None = (
26+
None # "MP4" or "WEBM", default "MP4"
27+
)
2628
output_quality: int | None = None # Compression quality, default 20
2729
negative_prompt: str | None = None
2830

@@ -37,12 +39,14 @@ class VideoOutputs(BaseModel):
3739
cost: float
3840
video_url: str
3941

42+
4043
class VideoInfoError(BaseModel):
4144
"""Error about the video creation request"""
4245

4346
code: str
4447
message: str
4548

49+
4650
class VideoInfo(BaseModel):
4751
"""Info about the video creation request"""
4852

0 commit comments

Comments
 (0)