toshiakit / MatGPT

MATLAB app to access ChatGPT API from OpenAI
MIT License
190 stars 26 forks source link

JSON syntax error #31

Closed xixici closed 2 months ago

xixici commented 3 months ago

When I flip the switch for streaming responses, I encounter an error message saying, "JSON syntax error: expected "" but found end of text."

Has anyone else run into this problem? Is there a way to fix it?

image

toshiakit commented 3 months ago

This is caused by OpenAI API returning an incomplete json data during streaming. There is nothing we can do from the client side, but we plan to improve the error message in order to make the cause clearer. This only occurs intermittently.

toshiakit commented 2 months ago

The error message was improved in the latest release.