openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

Parametr name mismatch.

Open Valek-Z opened this issue 1 year ago • 0 comments

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'}} image

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

Valek-Z avatar May 12 '24 19:05 Valek-Z