[Feature] Add a extra body param in create video api (#1955)
Signed-off-by: rongfu.leng <lenronfu@gmail.com>
This commit is contained in:
1 parent
ad5e4e5710
commit
b239bf0b7d
9 files changed
+742
-3
No files matched your search
@@ -161,6 +161,12 @@ class VideoGenerationRequest(BaseModel):
|
||||
),
|
||||
)
|
||||
|
||||
# Generic model-specific parameters
|
||||
extra_params: dict[str, Any] | None = Field(
|
||||
default=None,
|
||||
description=("Optional model-specific parameters passed directly to the model's extra_args. "),
|
||||
)
|
||||
|
||||
def resolve_video_params(self) -> VideoParams:
|
||||
vp = VideoParams(width=self.width, height=self.height, fps=self.fps, num_frames=self.num_frames)
|
||||
|
||||
|
||||
Reference in new issue
Block a user