Commit 1d67bd2
committed
fix: granite33 response_end span uses sentence length not full response length
_add_citation_response_spans computed response_end as index + len(response_text_without_citations),
which is the length of the entire stripped response rather than the cited sentence. This caused
every citation span to overshoot, potentially past the end of the string.
Fixes #8431 parent a1f1ad7 commit 1d67bd2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments