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

Update typings to latest version and add missing function calls to OpenAI class #57

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

dasheck0
Copy link
Contributor

I just found that OpenAI class in index.d.ts lacks function calls that are defined in OpenAI class in index.js. Therefore I am not able to call these functions within a Typescript project. I added them so that I can properly call them. Also I found out that Typings are not up to date with the current API (for example engine was renamed to model). I fixed those too. Can you check this and then push the latest changes to npm. Thank you. If something is missing let me know :) Thanks for your time!

OpenAI API is defined here https://beta.openai.com/docs/api-reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants