Commit b0b1d2c
committed
Guard chunk_and_stitch_embed against a non-positive cap
The shared helper assumed cap was positive; a cap <= 0 (a caller
misconfiguration) surfaced as a raw range() error (0) or a misleading
empty-stitch validation failure (< 0). Raise ValueError eagerly with a
clear message, mirroring the chunk_size guard TeiEmbeddingProvider
already applies at construction.1 parent 19dc109 commit b0b1d2c
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1492 | 1492 | | |
1493 | 1493 | | |
1494 | 1494 | | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1495 | 1508 | | |
1496 | 1509 | | |
1497 | 1510 | | |
| |||
0 commit comments