Alex Rattray

Results 272 comments of Alex Rattray

Thanks, I'll look into whether `type: 'function'` should be required in the client (which I think is the case) or whether the API should be relaxed. I'm not sure you...

I see your point, and you're welcome to suggest that at community.openai.com where the backend teams monitor for API feedback. For now, you can of course work around this by...

Sorry about this, `usage` events are not sent in streaming just yet; OpenAI hopes to add that to the API soon. Once that happens, this function will return numbers as...

Hi, thanks for your request here. You're correct that the server responds with `Content-Type: text/event-stream`, so that'd likely be a more appropriate `Accept:` header to send. We'll look into fixing...

We can't upgrade to node-fetch 3.x because it's ESM-only, and this library supports CJS as well. We're looking into backporting the fix for that issue to the 2.x line. FWIW,...

In the meantime, @marck283 you can work around this by installing `[email protected]` and pass it in to the library: ```ts import nodeFetch from 'node-fetch' import OpenAI from 'openai' const client...

Thank you for reporting this. Where are you deploying to, and what are your deployment settings? Can you share a full traceback?

Can you check whether this happens on `"openai": "4.8.0"` and `"openai": "4.9.0"`? We changed behavior in 4.9.0, so it'd be helpful to know whether that version fixed the issue, regressed...