openai/openai-python

Public

mirrored fromhttps://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.108.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

tests/compat/test_tool_param.py

8lines · modecode

1from openai.types.chat import ChatCompletionToolParam
2
3
4def test_tool_param_can_be_instantiated() -> None:
5 assert ChatCompletionToolParam(type="function", function={"name": "test"}) == {
6 "function": {"name": "test"},
7 "type": "function",
8 }
9