Incorrect type hint for chunking_strategy
params on File
class methods
#2005
Labels
bug
Something isn't working
chunking_strategy
params on File
class methods
#2005
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
If I pass in a
StaticFileChunkingStrategyParam
toOpenAI.beta.vector_stores.create
I get:To Reproduce
Run this repro:
Based on type hints I'd expect this to work, but I get the above api error.
It works instead with:
i.e. looks the type hint should be changed to
FileChunkingStrategy
. Note there are many such methods with this param inFiles
(e.g. create_and_poll, upload, ...). I haven't tested these, but this change may apply to them too.Code snippets
No response
OS
macos 14.3.1
Python version
Python 3.10.14
Library version
openai==1.59.6
The text was updated successfully, but these errors were encountered: