openai-node
openai-node copied to clipboard
Type CreateChatCompletionResponse doesn't seem to be exported correctly
Describe the bug
On 3.2.1, can't seem to find the CreateChatCompletionResponse type definition, even though I see it in the definitions file:
https://github.com/openai/openai-node/blob/master/dist/api.d.ts#L345
No exported member detected when trying to export it in my TS project:

To Reproduce
- Try to import type
CreateChatCompletionResponsefromopenai - Cannot find type declaration
Code snippets
No response
OS
macOS
Node version
Node v16.17.0
Library version
openai v3.2.1
I'm having the same issue.
Try updating the library. Inside your project
npm update openai
Try updating the library. Inside your project
npm update openai
It's already on the latest version. Even tried reinstalling the latest just now, still same issue.
Our fully rewritten upcoming v4 redoes our types; you should be able to import types more easily now (though note, all the types are different).