Skip to content

Commit 58ac3d1

Browse files
fix(api): Fix for parameters with missing descriptions
1 parent 397e939 commit 58ac3d1

File tree

3 files changed

+59
-6
lines changed

3 files changed

+59
-6
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-50d72f887af30d0d676f216865284f2bc36899cc197f81774445e00bc0228c02.yml
3-
openapi_spec_hash: c692214e7e704169e0e82d5b367e8f8c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-34491bc11ee43039ff5f1828a4caf68847a7346ab283bbefe88d1690951dd4d6.yml
3+
openapi_spec_hash: 4fc80b2e354cf70ebc85e0ef4e7e6f51
44
config_hash: 77ce816c37172a537f337abfaf2d65a9

src/runwayml/resources/image_to_video.py

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,27 @@ def create(
7070
frame of the generated video. See [our docs](/assets/inputs#images) on image
7171
inputs for more information.
7272
73-
ratio
73+
ratio: The resolution of the output video.
74+
75+
`gen4_turbo` supports the following values:
76+
77+
- `1280:720`
78+
- `720:1280`
79+
- `1104:832`
80+
- `832:1104`
81+
- `960:960`
82+
- `1584:672`
83+
84+
`gen3a_turbo` supports the following values:
85+
86+
- `1280:768`
87+
- `768:1280`
7488
7589
duration: The number of seconds of duration for the output video.
7690
77-
prompt_text
91+
prompt_text: A non-empty string up to 1000 UTF-16 code points in length (that is,
92+
`promptText.length === 1000` in JavaScript). This should describe in detail what
93+
should appear in the output.
7894
7995
seed: If unspecified, a random number is chosen. Varying the seed integer is a way to
8096
get different results for the same other request parameters. Using the same seed
@@ -154,11 +170,27 @@ async def create(
154170
frame of the generated video. See [our docs](/assets/inputs#images) on image
155171
inputs for more information.
156172
157-
ratio
173+
ratio: The resolution of the output video.
174+
175+
`gen4_turbo` supports the following values:
176+
177+
- `1280:720`
178+
- `720:1280`
179+
- `1104:832`
180+
- `832:1104`
181+
- `960:960`
182+
- `1584:672`
183+
184+
`gen3a_turbo` supports the following values:
185+
186+
- `1280:768`
187+
- `768:1280`
158188
159189
duration: The number of seconds of duration for the output video.
160190
161-
prompt_text
191+
prompt_text: A non-empty string up to 1000 UTF-16 code points in length (that is,
192+
`promptText.length === 1000` in JavaScript). This should describe in detail what
193+
should appear in the output.
162194
163195
seed: If unspecified, a random number is chosen. Varying the seed integer is a way to
164196
get different results for the same other request parameters. Using the same seed

src/runwayml/types/image_to_video_create_params.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,32 @@ class ImageToVideoCreateParams(TypedDict, total=False):
2424
ratio: Required[
2525
Literal["1280:720", "720:1280", "1104:832", "832:1104", "960:960", "1584:672", "1280:768", "768:1280"]
2626
]
27+
"""The resolution of the output video.
28+
29+
`gen4_turbo` supports the following values:
30+
31+
- `1280:720`
32+
- `720:1280`
33+
- `1104:832`
34+
- `832:1104`
35+
- `960:960`
36+
- `1584:672`
37+
38+
`gen3a_turbo` supports the following values:
39+
40+
- `1280:768`
41+
- `768:1280`
42+
"""
2743

2844
duration: Literal[5, 10]
2945
"""The number of seconds of duration for the output video."""
3046

3147
prompt_text: Annotated[str, PropertyInfo(alias="promptText")]
48+
"""
49+
A non-empty string up to 1000 UTF-16 code points in length (that is,
50+
`promptText.length === 1000` in JavaScript). This should describe in detail what
51+
should appear in the output.
52+
"""
3253

3354
seed: int
3455
"""If unspecified, a random number is chosen.

0 commit comments

Comments
 (0)