Support for transformers version 5 and later has been added. Thanks to marcus165090-spec for PR #2315 (followed by PR #2316).