Commit a6beda8e

Robert Craigie <robert@craigie.dev>
2025-08-11 21:08:27
fix(types): revert ChatCompletionMessageToolCallParam to a TypedDict
1 parent bff85cd
Changed files (2)
src/openai/types/chat/__init__.py
@@ -52,6 +52,9 @@ from .chat_completion_content_part_text_param import (
 from .chat_completion_developer_message_param import (
     ChatCompletionDeveloperMessageParam as ChatCompletionDeveloperMessageParam,
 )
+from .chat_completion_message_tool_call_param import (
+    ChatCompletionMessageToolCallParam as ChatCompletionMessageToolCallParam,
+)
 from .chat_completion_named_tool_choice_param import (
     ChatCompletionNamedToolChoiceParam as ChatCompletionNamedToolChoiceParam,
 )
src/openai/types/chat/chat_completion_message_tool_call_param.py
@@ -0,0 +1,14 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypeAlias
+
+from .chat_completion_message_function_tool_call_param import (
+    Function as Function,
+    ChatCompletionMessageFunctionToolCallParam,
+)
+
+__all__ = ["ChatCompletionMessageToolCallParam", "Function"]
+
+ChatCompletionMessageToolCallParam: TypeAlias = ChatCompletionMessageFunctionToolCallParam