Skip to content

Parametr name mismatch. #1412

@Valek-Z

Description

@Valek-Z

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions