Skip to content

Commit 083bb47

Browse files
feat(readme): Fix for readme example
Missing `ratio` parameter
1 parent 5d5aab2 commit 083bb47

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 9
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-c2136d7f8f9cd5d268d201bd4d5e67187a7114aabf90898dd243847caf30a931.yml
33
openapi_spec_hash: 1b0634904dc33dbaf2150112abcf073f
4-
config_hash: 36e1bb61e6171d3b2cb41fe52f7eaea7
4+
config_hash: b572ee7ff871bc9a4571c9da59891704

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ client = RunwayML(
3535
image_to_video = client.image_to_video.create(
3636
model="gen4_turbo",
3737
prompt_image="https://example.com/assets/bunny.jpg",
38-
ratio="1280:720",
38+
ratio="1280:768",
3939
prompt_text="The bunny is eating a carrot",
4040
)
4141
print(image_to_video.id)
@@ -64,7 +64,7 @@ async def main() -> None:
6464
image_to_video = await client.image_to_video.create(
6565
model="gen4_turbo",
6666
prompt_image="https://example.com/assets/bunny.jpg",
67-
ratio="1280:720",
67+
ratio="1280:768",
6868
prompt_text="The bunny is eating a carrot",
6969
)
7070
print(image_to_video.id)
@@ -102,7 +102,7 @@ async def main() -> None:
102102
image_to_video = await client.image_to_video.create(
103103
model="gen4_turbo",
104104
prompt_image="https://example.com/assets/bunny.jpg",
105-
ratio="1280:720",
105+
ratio="1280:768",
106106
prompt_text="The bunny is eating a carrot",
107107
)
108108
print(image_to_video.id)
@@ -156,7 +156,7 @@ try:
156156
client.image_to_video.create(
157157
model="gen4_turbo",
158158
prompt_image="https://example.com/assets/bunny.jpg",
159-
ratio="1280:720",
159+
ratio="1280:768",
160160
prompt_text="The bunny is eating a carrot",
161161
)
162162
except runwayml.APIConnectionError as e:
@@ -204,7 +204,7 @@ client = RunwayML(
204204
client.with_options(max_retries=5).image_to_video.create(
205205
model="gen4_turbo",
206206
prompt_image="https://example.com/assets/bunny.jpg",
207-
ratio="1280:720",
207+
ratio="1280:768",
208208
prompt_text="The bunny is eating a carrot",
209209
)
210210
```
@@ -232,7 +232,7 @@ client = RunwayML(
232232
client.with_options(timeout=5.0).image_to_video.create(
233233
model="gen4_turbo",
234234
prompt_image="https://example.com/assets/bunny.jpg",
235-
ratio="1280:720",
235+
ratio="1280:768",
236236
prompt_text="The bunny is eating a carrot",
237237
)
238238
```
@@ -278,7 +278,7 @@ client = RunwayML()
278278
response = client.image_to_video.with_raw_response.create(
279279
model="gen4_turbo",
280280
prompt_image="https://example.com/assets/bunny.jpg",
281-
ratio="1280:720",
281+
ratio="1280:768",
282282
prompt_text="The bunny is eating a carrot",
283283
)
284284
print(response.headers.get('X-My-Header'))
@@ -301,7 +301,7 @@ To stream the response body, use `.with_streaming_response` instead, which requi
301301
with client.image_to_video.with_streaming_response.create(
302302
model="gen4_turbo",
303303
prompt_image="https://example.com/assets/bunny.jpg",
304-
ratio="1280:720",
304+
ratio="1280:768",
305305
prompt_text="The bunny is eating a carrot",
306306
) as response:
307307
print(response.headers.get("X-My-Header"))

0 commit comments

Comments
 (0)