Skip to content

Commit bff85cd

Browse files
fix(types): rename ChatCompletionMessageToolCallParam
1 parent 4d8c14c commit bff85cd

7 files changed

+15
-15
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: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-6a1bfd4738fff02ef5becc3fdb2bf0cd6c026f2c924d4147a2a515474477dd9a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9cadfad609f94f20ebf74fdc06a80302f1a324dc69700a309a8056aabca82fd2.yml
33
openapi_spec_hash: 3eb8d86c06f0bb5e1190983e5acfc9ba
4-
config_hash: a67c5e195a59855fe8a5db0dc61a3e7f
4+
config_hash: 68337b532875626269c304372a669f67

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ from openai.types.chat import (
6969
ChatCompletionMessageCustomToolCall,
7070
ChatCompletionMessageFunctionToolCall,
7171
ChatCompletionMessageParam,
72-
ChatCompletionMessageToolCall,
72+
ChatCompletionMessageToolCallUnion,
7373
ChatCompletionModality,
7474
ChatCompletionNamedToolChoice,
7575
ChatCompletionNamedToolChoiceCustom,

src/openai/types/chat/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from .chat_completion_tool_union_param import ChatCompletionToolUnionParam as ChatCompletionToolUnionParam
3232
from .chat_completion_content_part_text import ChatCompletionContentPartText as ChatCompletionContentPartText
3333
from .chat_completion_custom_tool_param import ChatCompletionCustomToolParam as ChatCompletionCustomToolParam
34-
from .chat_completion_message_tool_call import ChatCompletionMessageToolCall as ChatCompletionMessageToolCall
34+
from .chat_completion_message_tool_call import ChatCompletionMessageToolCallUnion as ChatCompletionMessageToolCallUnion
3535
from .chat_completion_content_part_image import ChatCompletionContentPartImage as ChatCompletionContentPartImage
3636
from .chat_completion_content_part_param import ChatCompletionContentPartParam as ChatCompletionContentPartParam
3737
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam as ChatCompletionToolMessageParam
@@ -52,9 +52,6 @@
5252
from .chat_completion_developer_message_param import (
5353
ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam,
5454
)
55-
from .chat_completion_message_tool_call_param import (
56-
ChatCompletionMessageToolCallParam as ChatCompletionMessageToolCallParam,
57-
)
5855
from .chat_completion_named_tool_choice_param import (
5956
ChatCompletionNamedToolChoiceParam as ChatCompletionNamedToolChoiceParam,
6057
)
@@ -82,6 +79,9 @@
8279
from .chat_completion_message_function_tool_call import (
8380
ChatCompletionMessageFunctionToolCall as ChatCompletionMessageFunctionToolCall,
8481
)
82+
from .chat_completion_message_tool_call_union_param import (
83+
ChatCompletionMessageToolCallUnionParam as ChatCompletionMessageToolCallUnionParam,
84+
)
8585
from .chat_completion_content_part_input_audio_param import (
8686
ChatCompletionContentPartInputAudioParam as ChatCompletionContentPartInputAudioParam,
8787
)

src/openai/types/chat/chat_completion_assistant_message_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

88
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
9-
from .chat_completion_message_tool_call_param import ChatCompletionMessageToolCallParam
109
from .chat_completion_content_part_refusal_param import ChatCompletionContentPartRefusalParam
10+
from .chat_completion_message_tool_call_union_param import ChatCompletionMessageToolCallUnionParam
1111

1212
__all__ = ["ChatCompletionAssistantMessageParam", "Audio", "ContentArrayOfContentPart", "FunctionCall"]
1313

@@ -66,5 +66,5 @@ class ChatCompletionAssistantMessageParam(TypedDict, total=False):
6666
refusal: Optional[str]
6767
"""The refusal message by the assistant."""
6868

69-
tool_calls: Iterable[ChatCompletionMessageToolCallParam]
69+
tool_calls: Iterable[ChatCompletionMessageToolCallUnionParam]
7070
"""The tool calls generated by the model, such as function calls."""

src/openai/types/chat/chat_completion_message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ..._models import BaseModel
77
from .chat_completion_audio import ChatCompletionAudio
8-
from .chat_completion_message_tool_call import ChatCompletionMessageToolCall
8+
from .chat_completion_message_tool_call import ChatCompletionMessageToolCallUnion
99

1010
__all__ = ["ChatCompletionMessage", "Annotation", "AnnotationURLCitation", "FunctionCall"]
1111

@@ -75,5 +75,5 @@ class ChatCompletionMessage(BaseModel):
7575
model.
7676
"""
7777

78-
tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None
78+
tool_calls: Optional[List[ChatCompletionMessageToolCallUnion]] = None
7979
"""The tool calls generated by the model, such as function calls."""

src/openai/types/chat/chat_completion_message_tool_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from .chat_completion_message_custom_tool_call import ChatCompletionMessageCustomToolCall
88
from .chat_completion_message_function_tool_call import Function as Function, ChatCompletionMessageFunctionToolCall
99

10-
__all__ = ["ChatCompletionMessageToolCall", "Function"]
10+
__all__ = [ "Function", "ChatCompletionMessageToolCallUnion"]
1111

12-
ChatCompletionMessageToolCall: TypeAlias = Annotated[
12+
ChatCompletionMessageToolCallUnion: TypeAlias = Annotated[
1313
Union[ChatCompletionMessageFunctionToolCall, ChatCompletionMessageCustomToolCall],
1414
PropertyInfo(discriminator="type"),
1515
]

src/openai/types/chat/chat_completion_message_tool_call_param.py renamed to src/openai/types/chat/chat_completion_message_tool_call_union_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from .chat_completion_message_custom_tool_call_param import ChatCompletionMessageCustomToolCallParam
99
from .chat_completion_message_function_tool_call_param import ChatCompletionMessageFunctionToolCallParam
1010

11-
__all__ = ["ChatCompletionMessageToolCallParam"]
11+
__all__ = ["ChatCompletionMessageToolCallUnionParam"]
1212

13-
ChatCompletionMessageToolCallParam: TypeAlias = Union[
13+
ChatCompletionMessageToolCallUnionParam: TypeAlias = Union[
1414
ChatCompletionMessageFunctionToolCallParam, ChatCompletionMessageCustomToolCallParam
1515
]

0 commit comments

Comments
 (0)