Dropped tokens when streaming via PHP?

Hey wondering if anyone has encountered this.

I’m streaming from GPT3 via PHP (so it loads the content token by token, which I can then stream to the browser)

Works great, but I notice there are often missing words, which I assume are missing tokens.

Does anyone know what might be causing this? Has anyone else experienced this?


Very late response - but I’m also encountering this on 3.5 chatCompletions streaming (via node/js)
If anyone has a fix - I’d love to hear it!