mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 07:07:05 +08:00
Fix: Nested AnyUrl in request model cannot be serialized (Kling, Runway) (#129)
This commit is contained in:
parent
f1808ef315
commit
898acc0f52
@ -3153,9 +3153,9 @@ class RunwayAspectRatioEnum(str, Enum):
|
|||||||
|
|
||||||
|
|
||||||
class RunwayPromptImageObject(
|
class RunwayPromptImageObject(
|
||||||
RootModel[Union[AnyUrl, List[RunwayPromptImageDetailedObject]]]
|
RootModel[Union[str, List[RunwayPromptImageDetailedObject]]]
|
||||||
):
|
):
|
||||||
root: Union[AnyUrl, List[RunwayPromptImageDetailedObject]] = Field(
|
root: Union[str, List[RunwayPromptImageDetailedObject]] = Field(
|
||||||
...,
|
...,
|
||||||
description='Image(s) to use for the video generation. Can be a single URI or an array of image objects with positions.',
|
description='Image(s) to use for the video generation. Can be a single URI or an array of image objects with positions.',
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user