Commit ff28121
Fix transformers dependency constraint to prevent NameError
- Add explicit transformers>=4.48.3,<=5.5.3 to pyproject.toml
- Bump version to 0.2.2
- Add tests/bank-chat-system/.venv to .gitignore
Fixes bug where pip install java-codebase-rag would install
transformers 5.9.0 via sentence-transformers, causing:
NameError: name 'nn' is not defined in transformers/integrations/accelerate.py
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6b883d9 commit ff28121
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments