lost interest check out Pork's version
inspired by ai sponge.
https://www.youtube.com/watch?v=XrYNB16SNQQ
create an empty game object and add the AIThing script to it.
insert the keys and stuff in the script's corresponding input boxes.
If you want the camera to follow the characters as they talk create a Cinemachine camera and call the characters gameobject's the same as they're called in the Generate method in AIThing.cs
for subtitles and video player to work create a canvas and add a textmeshpro and video player as children to the canvas. set the video player's render mode to Camera Near Plane and put the camera in the camera field.
https://github.com/Interesting-exe/sponge-ai/assets/52731127/367a02e5-0012-4951-8217-698715116fcd