toshiakit / MatGPT

MATLAB app to access ChatGPT API from OpenAI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON syntax error

xixici opened this issue · comments

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

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.

The error message was improved in the latest release.