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

openai.beta.threads.create has the wrong type for TS #448

Open
1 task done
robin-pham opened this issue Nov 7, 2023 · 3 comments
Open
1 task done

openai.beta.threads.create has the wrong type for TS #448

robin-pham opened this issue Nov 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@robin-pham
Copy link

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • 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

Screenshot_2023-11-06_21-09-10

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

@robin-pham robin-pham added the bug Something isn't working label Nov 7, 2023
@rattrayalex
Copy link
Collaborator

Thanks for reporting, we hope to fix this soon.

@121yaseen
Copy link

Is there a quick workaround for this issue?

@rattrayalex
Copy link
Collaborator

The workaround would be to pass an empty object, perhaps with an as any annotation

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

3 participants