openai-python
openai-python copied to clipboard
Parametr name mismatch.
Confirm this is an issue with the Python library and not an underlying OpenAI API
- [X] This is an issue with the Python library
Describe the bug
Parametr name mismatch in method create_and_run_stream parametr tool_resources when call post request body data named tool.
And result :
openai.BadRequestError: Error code: 400 - {'error': {'message': "Unknown parameter: 'tool'.", 'type': 'invalid_request_error', 'param': 'tool', 'code': 'unknown_parameter'}}
To Reproduce
Call method client.beta.threads.create_and_run() with filled tool_resources param.
Code snippets
No response
OS
Windows
Python version
python v3.10
Library version
openai v1.28.1