OpenAI-Unity
OpenAI-Unity copied to clipboard
Handle error in async void DispatchRequest
Hi,
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<T>(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.