In Unity, encountering JsonSerializationException while using ChatGPT API

I also face the same issues just now and I also follow the tutorial on YouTube(Sarge). I am also curious and do not know the solution for it before.

Now I finally found a solution. Try these step, maybe is OpenAI update ther API recently

  1. Packages → OpenAIUnity → Runtime → DataTypes
  2. Find CreateChatCompletion Response struct
  3. Add public string SystemFingerprint {get;set]