Correctly return finish reason length when finished (#42157)
* Correctly return finish reason length when finished
* Typos + fixup
* Fix a few tests
* Update src/transformers/cli/chat.py
Co-authored-by: Lucain <lucainp@gmail.com>
---------
Co-authored-by: Lucain <lucainp@gmail.com>