Invalid python generation with presence_penalty and frequency_penalty!

Took me days to track down, but it turns out, if you provide presence_penalty and frequency_penalty of 1, even though those are the default values (I believe), long generated python will start omitting indent spaces!

Watch out! (verified on both gpt-3.5-turbo and gpt-3.5-turbo-16k)

3 Likes