Closed Rooklz closed 1 year ago
I'm having the same issue. It's sucking the credits up weirdly too. Like 100 TTS credits in only a few seconds before I hit the pause button.
I'm having the same issue. It's sucking the credits up weirdly too. Like 100 TTS credits in only a few seconds before I hit the pause button.
Oh wow same actually I've used 256 after only having it run for 5 seconds xd
I should've made it clear and also probably add an if. the name of gameobjects of your characters have to be the same as the character variable in the if statements at the "Generate(string topic)" method. so if you haven't messed with the code the gameobject's names should be: "spongebob", "patrick", "mrkrabs", "squidward" and "sandy".
also, i'd recommend decreasing max_tokens at line 179 to around 25-50 while testing so you dont use too many render credits
I've updated the code so it wont crash even if you dont have the same gameobject names hope it works for you guys now
So half of this is working for me, Uberduck is generating as it's using tokens and GPT is also generating outputting to "next"
However I keep getting this error no matter what I do `NullReferenceException: Object reference not set to an instance of an object AIThing+d__16.MoveNext () (at Assets/Scripts/AIThing.cs:249)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)