Alex Rattray
Alex Rattray
Right now you can ```ts import { Stream } from 'openai/streaming'; import { ChatCompletionStream } from 'openai/lib/ChatCompletionStream'; ``` We'll take a look at adding them to the top-level export.
Thanks! We do need better docs on this. What would you like to see in those docs?
Thanks. As a workaround, can you try importing the error class directly from the file it's declared in, or just checking `error.name === 'APIUserAbortError'`?
cc @kenjam97 who [reported](https://github.com/openai/openai-node/discussions/182#discussioncomment-7789622): > Also seeing this same error when I build (nextjs), no issues in dev mode at all, only in production Could you try either workaround?
Hey Sashank! Nice username. Yeah I agree this is not great. You need an `as const` so that TS knows not to widen `role: "user"` to the type `role: string`....
Ah, yeah sorry this is generated so we'd have to do this a different way. I actually think we may have also previously decided against making this change, but to...
Impossible is not the word, just not as quick as we'd like :)
Thanks for reporting, we'll take a look soon. In the meantime, you might try methods other than `FormDataBlob` to instantiate the file contents, like converting the string to an `ArrayBuffer`.
Thanks for reporting, we should be able to do this by sometime next week.
Thanks for reporting, we'll look into it!