uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MoonRock1961 opened this issue · comments

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.

commented

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

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.