dilmerv / UnityChatGPT

Few examples with Chat GPT In Unity
https://www.youtube.com/@dilmerv
MIT License
143 stars 24 forks source link

Error message: Additional properties are not allowed ('Content', 'Role' were unexpected) - 'messages.0'", #1

Open enaraartetxe opened 1 year ago

enaraartetxe commented 1 year ago

First time playing the project got a null pointer exception error in the chatGPTResponse. Tracking it down, the answer coming from ChatGPT inside ChatGPTClient.cs --> responseInfo was the error above. Apparently ChatGPT needs those two parameteres to be lowercase. Changed them in ChatGPTChatMessage.cs and got the demo running :)