Fix: Nested AnyUrl in request model cannot be serialized (Kling, Runway) (#129)

This commit is contained in:
Christian Byrne 2025-05-04 21:04:21 -07:00 committed by Robin Huang
parent f1808ef315
commit 898acc0f52

View File

@ -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.',
) )