# What does this PR do?

Updates the condition for raising a warning in generate to warn users if the `generation_config`'s `max_length` is set to the default value. 
[`generate`]  Only warn users if the `generation_config`'s `max_length` is set to the default value. # What does this PR do?

Updates the condition for raising a warning in generate to warn users if the `generation_config`'s `max_length` is set to the default value. 