openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
3a3cabb7e140f0a462e4e3aa4f9f2902bb7a2a92

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