Skip to content

Commit 7475a42

Browse files
Wang Zesongdayflyshao
authored andcommitted
feat: generate missing classes
1 parent a675288 commit 7475a42

File tree

56 files changed

+1388
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1388
-215
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import Literal
17+
18+
from ..._models import BaseModel
19+
20+
__all__ = ["AudioChunkingStrategy"]
21+
22+
23+
class AudioChunkingStrategy(BaseModel):
24+
type: Literal["server_vad"]
25+
26+
prefix_padding_ms: Optional[int] = None
27+
28+
silence_duration_ms: Optional[int] = None
29+
30+
threshold: Optional[float] = None
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import Literal, Required, TypedDict
17+
18+
__all__ = ["AudioChunkingStrategyParam"]
19+
20+
21+
class AudioChunkingStrategyParam(TypedDict, total=False):
22+
type: Required[Literal["server_vad"]]
23+
24+
prefix_padding_ms: Optional[int]
25+
26+
silence_duration_ms: Optional[int]
27+
28+
threshold: Optional[float]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from ..._models import BaseModel
17+
18+
__all__ = ["ImageProcessGroundingOptions"]
19+
20+
21+
class ImageProcessGroundingOptions(BaseModel):
22+
type: Optional[str] = None
23+
"""`disabled` or `enabled`."""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import TypedDict
17+
18+
__all__ = ["ImageProcessGroundingOptionsParam"]
19+
20+
21+
class ImageProcessGroundingOptionsParam(TypedDict, total=False):
22+
type: Optional[str]
23+
"""`disabled` or `enabled`."""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from ..._models import BaseModel
17+
18+
__all__ = ["ImageProcessPointOptions"]
19+
20+
21+
class ImageProcessPointOptions(BaseModel):
22+
type: Optional[str] = None
23+
"""`disabled` or `enabled`."""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import TypedDict
17+
18+
__all__ = ["ImageProcessPointOptionsParam"]
19+
20+
21+
class ImageProcessPointOptionsParam(TypedDict, total=False):
22+
type: Optional[str]
23+
"""`disabled` or `enabled`."""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from ..._models import BaseModel
17+
18+
__all__ = ["ImageProcessRotateOptions"]
19+
20+
21+
class ImageProcessRotateOptions(BaseModel):
22+
type: Optional[str] = None
23+
"""`disabled` or `enabled`."""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import TypedDict
17+
18+
__all__ = ["ImageProcessRotateOptionsParam"]
19+
20+
21+
class ImageProcessRotateOptionsParam(TypedDict, total=False):
22+
type: Optional[str]
23+
"""`disabled` or `enabled`."""
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import Literal
17+
18+
from ..._models import BaseModel
19+
from .image_process_grounding_options import ImageProcessGroundingOptions
20+
from .image_process_point_options import ImageProcessPointOptions
21+
from .image_process_rotate_options import ImageProcessRotateOptions
22+
from .image_process_zoom_options import ImageProcessZoomOptions
23+
24+
__all__ = ["ImageProcessTool"]
25+
26+
27+
class ImageProcessTool(BaseModel):
28+
type: Literal["image_process"]
29+
"""The type of the image process. Always `image_process`."""
30+
31+
point: Optional[ImageProcessPointOptions] = None
32+
"""Whether enable point tool."""
33+
34+
grounding: Optional[ImageProcessGroundingOptions] = None
35+
"""Whether enable grounding tool."""
36+
37+
zoom: Optional[ImageProcessZoomOptions] = None
38+
"""Whether enable zoom tool."""
39+
40+
rotate: Optional[ImageProcessRotateOptions] = None
41+
"""Whether enable rotate tool."""
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright (c) [2025] [OpenAI]
2+
# Copyright (c) [2025] [ByteDance Ltd. and/or its affiliates.]
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# This file has been modified by [ByteDance Ltd. and/or its affiliates.] on 2025.7
6+
#
7+
# Original file was released under Apache License Version 2.0, with the full license text
8+
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
9+
#
10+
# This modified file is released under the same license.
11+
12+
from __future__ import annotations
13+
14+
from typing import Optional
15+
16+
from typing_extensions import Literal, Required, TypedDict
17+
18+
from .image_process_grounding_options_param import ImageProcessGroundingOptionsParam
19+
from .image_process_point_options_param import ImageProcessPointOptionsParam
20+
from .image_process_rotate_options_param import ImageProcessRotateOptionsParam
21+
from .image_process_zoom_options_param import ImageProcessZoomOptionsParam
22+
23+
__all__ = ["ImageProcessToolParam"]
24+
25+
26+
class ImageProcessToolParam(TypedDict, total=False):
27+
type: Required[Literal["image_process"]]
28+
"""The type of the image process. Always `image_process`."""
29+
30+
point: Optional[ImageProcessPointOptionsParam]
31+
"""Whether enable point tool."""
32+
33+
grounding: Optional[ImageProcessGroundingOptionsParam]
34+
"""Whether enable grounding tool."""
35+
36+
zoom: Optional[ImageProcessZoomOptionsParam]
37+
"""Whether enable zoom tool."""
38+
39+
rotate: Optional[ImageProcessRotateOptionsParam]
40+
"""Whether enable rotate tool."""

0 commit comments

Comments
 (0)