Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametr name mismatch. #1412

Open
1 task done
Valek-Z opened this issue May 12, 2024 · 0 comments
Open
1 task done

Parametr name mismatch. #1412

Valek-Z opened this issue May 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Valek-Z
Copy link

Valek-Z commented May 12, 2024

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

@Valek-Z Valek-Z added the bug Something isn't working label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant