I found some issues when request.downloadHandler.text retrieve an error message.
Because the lines retrieved are like that
and after you try to convert them with: var data = JsonConvert.DeserializeObject(value, jsonSerializerSettings);
But this give a error exception because the json format is not correct.
Hi,
I found some issues when request.downloadHandler.text retrieve an error message.
Because the lines retrieved are like that![ErrorMessageHandle](https://github.com/srcnalt/OpenAI-Unity/assets/117821088/6784f4a1-4510-47c0-afcf-74afd14dad9e)
and after you try to convert them with: var data = JsonConvert.DeserializeObject(value, jsonSerializerSettings);
But this give a error exception because the json format is not correct.
I have done some changes to fix this https://codefile.io/f/HWLrBZPdhh
Tell me if it's look good for you my fixes.