Skip to content

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

Open
dasheck0 wants to merge 11 commits intonjerschow:mainfrom
dasheck0:main
Open

Update typings to latest version and add missing function calls to OpenAI class#57
dasheck0 wants to merge 11 commits intonjerschow:mainfrom
dasheck0:main

Conversation

@dasheck0
Copy link
Copy Markdown
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