-
Notifications
You must be signed in to change notification settings - Fork 746
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
Stream nor ChatCompletionStream types not exported #558
Labels
enhancement
New feature or request
Comments
Right now you can import { Stream } from 'openai/streaming';
import { ChatCompletionStream } from 'openai/lib/ChatCompletionStream'; We'll take a look at adding them to the top-level export. |
This is actually good, IMO, but is this documented? |
Thanks! We do need better docs on this. What would you like to see in those docs? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
One of openai.chat.completions.create return types is ApiPromise<Stream<OpenAI.Chat.ChatCompletionChunk>>
yet the Stream is not the intrinsic Nodejs Stream, and not exported from openai.
To Reproduce
try to set type of awaited or in Promise return value from openai.chat.completions.create()
Code snippets
OS
any
Node version
18.13.0
Library version
4.20.1
The text was updated successfully, but these errors were encountered: