Commit 7174991
authored
fix(python-sdk): restrict transformers version for python 3.9 compat (#36385)
* fix(python-sdk): restrict transformers version for python 3.9 compatibility
Versions 4.55.0+ use Python 3.10+ union syntax which causes TypeError on Python 3.9
* build(python): pin sentence-transformers version for python 3.9 compatibility
Use sentence-transformers 2.x for Python 3.9 to maintain compatibility with transformers <4.55.0, while allowing newer versions for Python 3.10+
* docs: add Apache license header to test file
Add required license header to comply with Apache Software Foundation requirements1 parent bd77a1e commit 7174991
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
581 | 585 | | |
582 | 586 | | |
583 | 587 | | |
584 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
585 | 593 | | |
586 | 594 | | |
587 | 595 | | |
| |||
0 commit comments