File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 21
21
ParsedFunction as ParsedFunction ,
22
22
ParsedFunctionToolCall as ParsedFunctionToolCall ,
23
23
)
24
+ from .chat_completion_tool_param import ChatCompletionToolParam as ChatCompletionToolParam
24
25
from .chat_completion_audio_param import ChatCompletionAudioParam as ChatCompletionAudioParam
25
26
from .chat_completion_function_tool import ChatCompletionFunctionTool as ChatCompletionFunctionTool
26
27
from .chat_completion_message_param import ChatCompletionMessageParam as ChatCompletionMessageParam
Original file line number Diff line number Diff line change
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import TypeAlias
6
+
7
+ from .chat_completion_function_tool_param import ChatCompletionFunctionToolParam
8
+
9
+ __all__ = ["ChatCompletionToolParam" ]
10
+
11
+ ChatCompletionToolParam : TypeAlias = ChatCompletionFunctionToolParam
Original file line number Diff line number Diff line change
1
+ from openai .types .chat import ChatCompletionToolParam
2
+
3
+
4
+ def test_tool_param_can_be_instantiated () -> None :
5
+ assert ChatCompletionToolParam (type = "function" , function = {"name" : "test" }) == {
6
+ "function" : {"name" : "test" },
7
+ "type" : "function" ,
8
+ }
You can’t perform that action at this time.
0 commit comments