Skip to content

Commit eaab2f5

Browse files
feat(api): api updates
1 parent d167d14 commit eaab2f5

5 files changed

Lines changed: 10 additions & 17 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 137
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-a47fcdd0fd85e2910e56b34ab3239edbb50957af8dca11db4184d3ba2cae9ad8.yml
3-
openapi_spec_hash: ff61f44f41561b462da4a930c4eb84df
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-506f44f37cccac43899267dd64cc5615e96f6e15f2736aa37e5e4eed2eccc567.yml
3+
openapi_spec_hash: d242c25afd700d928787a46e7901fa45
44
config_hash: ad7136f7366fddec432ec378939e58a7

src/openai/resources/videos.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
video_create_params,
1717
video_download_content_params,
1818
)
19-
from .._types import Body, Omit, Query, Headers, NotGiven, FileTypes, SequenceNotStr, omit, not_given
19+
from .._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
2020
from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
2121
from .._compat import cached_property
2222
from .._resource import SyncAPIResource, AsyncAPIResource
@@ -64,7 +64,6 @@ def create(
6464
self,
6565
*,
6666
prompt: str,
67-
character_ids: SequenceNotStr[str] | Omit = omit,
6867
input_reference: FileTypes | Omit = omit,
6968
model: VideoModelParam | Omit = omit,
7069
seconds: VideoSeconds | Omit = omit,
@@ -82,8 +81,6 @@ def create(
8281
Args:
8382
prompt: Text prompt that describes the video to generate.
8483
85-
character_ids: Character IDs to include in the generation.
86-
8784
input_reference: Optional image reference that guides generation.
8885
8986
model: The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults
@@ -105,7 +102,6 @@ def create(
105102
body = deepcopy_minimal(
106103
{
107104
"prompt": prompt,
108-
"character_ids": character_ids,
109105
"input_reference": input_reference,
110106
"model": model,
111107
"seconds": seconds,
@@ -425,7 +421,6 @@ async def create(
425421
self,
426422
*,
427423
prompt: str,
428-
character_ids: SequenceNotStr[str] | Omit = omit,
429424
input_reference: FileTypes | Omit = omit,
430425
model: VideoModelParam | Omit = omit,
431426
seconds: VideoSeconds | Omit = omit,
@@ -443,8 +438,6 @@ async def create(
443438
Args:
444439
prompt: Text prompt that describes the video to generate.
445440
446-
character_ids: Character IDs to include in the generation.
447-
448441
input_reference: Optional image reference that guides generation.
449442
450443
model: The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults
@@ -466,7 +459,6 @@ async def create(
466459
body = deepcopy_minimal(
467460
{
468461
"prompt": prompt,
469-
"character_ids": character_ids,
470462
"input_reference": input_reference,
471463
"model": model,
472464
"seconds": seconds,

src/openai/types/responses/response_function_shell_tool_call_output.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class ResponseFunctionShellToolCallOutput(BaseModel):
7575
output: List[Output]
7676
"""An array of shell call output contents"""
7777

78+
status: Literal["in_progress", "completed", "incomplete"]
79+
"""The status of the shell call output.
80+
81+
One of `in_progress`, `completed`, or `incomplete`.
82+
"""
83+
7884
type: Literal["shell_call_output"]
7985
"""The type of the shell call output. Always `shell_call_output`."""
8086

src/openai/types/video_create_params.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing_extensions import Required, TypedDict
66

7-
from .._types import FileTypes, SequenceNotStr
7+
from .._types import FileTypes
88
from .video_size import VideoSize
99
from .video_seconds import VideoSeconds
1010
from .video_model_param import VideoModelParam
@@ -16,9 +16,6 @@ class VideoCreateParams(TypedDict, total=False):
1616
prompt: Required[str]
1717
"""Text prompt that describes the video to generate."""
1818

19-
character_ids: SequenceNotStr[str]
20-
"""Character IDs to include in the generation."""
21-
2219
input_reference: FileTypes
2320
"""Optional image reference that guides generation."""
2421

tests/api_resources/test_videos.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def test_method_create(self, client: OpenAI) -> None:
3838
def test_method_create_with_all_params(self, client: OpenAI) -> None:
3939
video = client.videos.create(
4040
prompt="x",
41-
character_ids=["char_123"],
4241
input_reference=b"raw file contents",
4342
model="string",
4443
seconds="4",
@@ -297,7 +296,6 @@ async def test_method_create(self, async_client: AsyncOpenAI) -> None:
297296
async def test_method_create_with_all_params(self, async_client: AsyncOpenAI) -> None:
298297
video = await async_client.videos.create(
299298
prompt="x",
300-
character_ids=["char_123"],
301299
input_reference=b"raw file contents",
302300
model="string",
303301
seconds="4",

0 commit comments

Comments
 (0)