Commit 1fae933
fix(text): implement proper structured output for multi-chunk processing
- Fix annotate_text_sync to return List[Span] when structured=True for chunked text
- Previously returned dict instead of structured spans for text > chunk_length
- Add proper span position adjustment across chunk boundaries
- Resolves benchmark test failure in test_structured_output_performance
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 8e8eac7 commit 1fae933
1 file changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 135 | | |
141 | 136 | | |
142 | | - | |
143 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
144 | 161 | | |
145 | 162 | | |
146 | | - | |
147 | | - | |
148 | 163 | | |
149 | 164 | | |
150 | 165 | | |
| |||
0 commit comments