uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot
Apache License 2.0
693 stars 74 forks source link

The latest scrpits "ChatGPTStreamSkill.cs" and "ExampleFunctions.cs" don't work. #240

Open MoonRock1961 opened 1 year ago

MoonRock1961 commented 1 year ago

The unitypackage v.0.6.1 works fine. But when I replace the script "ChatGPTStreamSkill.cs" with the latest one and add the script "ExampleFunctions.cs" in the project, I get the following error: NullReferenceException: Object reference not set to an instance of an object ChatdollKit.Examples.ChatGPT.ChatGPTStreamSkill+ChatGPTStreamDownloadHandler.ReceiveData (System.Byte[] data, System.Int32 dataLength) (at Assets/ChatdollKit/Examples/ChatGPT/ChatGPTStreamSkill.cs:377) I imported the latest Newtonsoft json v.3.2.1. Please let me know how to fix this error.

uezo commented 1 year ago

Hi @MoonRock1961 , maybe you are not using the model gpt-3.5-turbo-0613 that support function calling.

MoonRock1961 commented 1 year ago

Thank you for your prompt reply and giving the suitable solution. The issue has been completely resolved. Thanks to you, I can sleep well tonight.