Skip to content

Commit 4c317fa

Browse files
Merge pull request #7707 from mrbullwinkle/mrb_10_16_2025_sora2_updates
[Azure OpenAI] Sora 2 add python comment model deployment name
2 parents d32ec1f + f1ad105 commit 4c317fa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/ai-foundry/openai/concepts/video-generation.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ client = OpenAI(
7777
)
7878

7979
video = client.videos.create(
80-
model="sora-2",
80+
model="sora-2", # Replace with Sora 2 model deployment name
8181
prompt="A video of a cool cat on a motorcycle in the night",
8282
)
8383

@@ -96,7 +96,7 @@ client = OpenAI(
9696
)
9797

9898
video = client.videos.create(
99-
model="sora-2",
99+
model="sora-2", # Replace with Sora 2 model deployment name
100100
prompt="A video of a cool cat on a motorcycle in the night",
101101
)
102102

@@ -123,7 +123,7 @@ from openai import OpenAI
123123
client = OpenAI()
124124

125125
video = client.videos.create(
126-
model="sora-2",
126+
model="sora-2", # Replace with Sora 2 model deployment name
127127
prompt="A video of a cool cat on a motorcycle in the night",
128128
)
129129

@@ -167,7 +167,7 @@ client = OpenAI(
167167

168168
# Create the video (don't use create_and_poll)
169169
video = client.videos.create(
170-
model="sora-2",
170+
model="sora-2", # Replace with Sora 2 model deployment name
171171
prompt="A video of a cat on a motorcycle",
172172
)
173173

@@ -209,7 +209,7 @@ client = AsyncOpenAI(
209209

210210
async def main() -> None:
211211
video = await client.videos.create_and_poll(
212-
model="sora-2",
212+
model="sora-2", # Replace with Sora 2 model deployment name
213213
prompt="A video of a cat on a motorcycle",
214214
)
215215

@@ -241,7 +241,7 @@ client = OpenAI(
241241

242242
# Create the video (don't use create_and_poll)
243243
video = client.videos.create(
244-
model="sora-2",
244+
model="sora-2", # Replace with Sora 2 model deployment name
245245
prompt="A video of a cat on a motorcycle",
246246
)
247247

@@ -279,7 +279,7 @@ client = OpenAI(
279279

280280
async def main() -> None:
281281
video = await client.videos.create_and_poll(
282-
model="sora-2",
282+
model="sora-2", # Replace with Sora 2 model deployment name
283283
prompt="A video of a cat on a motorcycle",
284284
)
285285

@@ -317,7 +317,7 @@ client = OpenAI()
317317

318318
# Create the video (don't use create_and_poll)
319319
video = client.videos.create(
320-
model="sora-2",
320+
model="sora-2", # Replace with Sora 2 model deployment name
321321
prompt="A video of a cat on a motorcycle",
322322
)
323323

@@ -350,7 +350,7 @@ client = OpenAI()
350350

351351
async def main() -> None:
352352
video = await client.videos.create_and_poll(
353-
model="sora-2",
353+
model="sora-2", # Replace with Sora 2 model deployment name
354354
prompt="A video of a cat on a motorcycle",
355355
)
356356

0 commit comments

Comments
 (0)