guidance-ai / guidance

A guidance language for controlling large language models.
MIT License
18.13k stars 1.01k forks source link

[Refactor] Tidy up _transformers.py #901

Closed riedgar-ms closed 2 weeks ago

riedgar-ms commented 2 weeks ago

Tidying up _transformers.py a little:

Also increase the line length limit for black, since 88 was a little on the short side.

riedgar-ms commented 2 weeks ago

This is tangentially related to #880 , as I try to figure out what's happening with the tokeniser. These are changes which don't belong in #899

codecov-commenter commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 81.63265% with 9 lines in your changes missing coverage. Please review.

Project coverage is 60.25%. Comparing base (9b80057) to head (17af380).

Files Patch % Lines
guidance/models/transformers/_transformers.py 81.25% 9 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #901 +/- ## ========================================== + Coverage 57.08% 60.25% +3.17% ========================================== Files 64 64 Lines 4674 4680 +6 ========================================== + Hits 2668 2820 +152 + Misses 2006 1860 -146 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.