Alex Rattray

Results 272 comments of 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?

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!