toshiakit / MatGPT

MATLAB app to access ChatGPT API from OpenAI
MIT License
202 stars 29 forks source link

JSON syntax error #31

Closed xixici closed 7 months ago

xixici commented 8 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 8 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 7 months ago

The error message was improved in the latest release.