Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MoonRock1961 opened this issue Jun 23, 2023 · 2 comments

Comments

@MoonRock1961
Copy link

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
Copy link
Owner

uezo commented Jun 23, 2023

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

@MoonRock1961
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants