Extract constant for max tokens

What does this MR do and why?

This change extracts a constant and was inspired by a comment in a previous MR. See !117962 (comment 1357954480) for details.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading