Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
The OpenAI API allows non-strict tool schemas, but in validate_input_tools you just raise an exception if strict is not true. I've ended up writing my own client using httpx but I'd prefer to not have to maintain it, given that this just seems like an oversight. You're adding constraints which aren't present in the API.
To Reproduce
Just pass any non-strict tool schema.
Code snippets
OS
macOS
Python version
Python 3.10
Library version
all versions
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
The OpenAI API allows non-strict tool schemas, but in
validate_input_toolsyou just raise an exception if strict is not true. I've ended up writing my own client usinghttpxbut I'd prefer to not have to maintain it, given that this just seems like an oversight. You're adding constraints which aren't present in the API.To Reproduce
Just pass any non-strict tool schema.
Code snippets
OS
macOS
Python version
Python 3.10
Library version
all versions