How do I use new 16k Context model?

Welcome to the forum!

Simply change the model = 'gpt-3.5-turbo' to model = 'gpt-3.5-turbo-16k'