dilmerv/UnityChatGPT

Problem about running UnityChatGPT demo

Opened this issue · 1 comments

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!

Hi,have you solved this problem?