dilmerv / UnityChatGPT

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

Problem about running UnityChatGPT demo #3

Open a962097364 opened 1 year ago

a962097364 commented 1 year ago

Hello!I try to run the demo of this project. However, when I click ASK CHATGPT, there is an ERROR comes out.

ArgumentNullException: Value cannot be null. Parameter name: source System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Boolean& found) (at <93223d662c2546d4b5d1784737504095>:0) System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable1[T] source) (at <93223d662c2546d4b5d1784737504095>:0) ChatGPTExtensions.CodeCleanUp (ChatGPTResponse chatGPTResponse) (at Assets/Scripts/ChatGPT/Extensions/ChatGPTExtensions.cs:11) ChatGPTClient+d__1.MoveNext () (at Assets/Scripts/ChatGPT/Client/ChatGPTClient.cs:57) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)

Do you know how to deal with this problem? Thanks a lot!

Linkersem commented 1 year ago

Hi,have you solved this problem?