I don’t have the code, since I made an app that uses the API to communicate. But I made a 30 second video showing you how it changes speakers suddenly.
https://www.awesomescreenshot.com/video/15768704?key=90e4d969b72ad73b452864d6dc81e4cd
The “system” message is set to "Interview me for a human resources job” and the first user prompt is “Interview me for a human resources job”.
Model is gpt-3.5-turbo (not 0301). And i’ve tried temperatures ranging from 0.1 to 0.7.