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