openai-node
openai-node copied to clipboard
openai.beta.threads.create has the wrong type for TS
Confirm this is a Node library issue and not an underlying OpenAI API issue
- [X] This is an issue with the Node library
Describe the bug
The auto-generated type for threads.create
is wrong as it's possible to have a .create()
with no args based off the docs
To Reproduce
In a typescript repo, invoke openai.beta.threads.runs.create()
with no args and observe a type error
Code snippets
No response
OS
N/A
Node version
Any
Library version
4.16.1
Thanks for reporting, we hope to fix this soon.
Is there a quick workaround for this issue?
The workaround would be to pass an empty object, perhaps with an as any
annotation