openai/openai-python

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.104.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

tests/compat/test_tool_param.py

8lines · modeblame

05a35a57Robert Craigie10 months ago1from openai.types.chat import ChatCompletionToolParam
2
3
4def test_tool_param_can_be_instantiated() -> None:
5assert ChatCompletionToolParam(type="function", function={"name": "test"}) == {
6"function": {"name": "test"},
7"type": "function",
8}