Commit 5a87d43
committed
fix: address review feedback from karpetrosyan
- Replace decoder.close() with response.close() in sync stream
- Replace decoder.close() with response.aclose() in async stream
- Standardize comments between sync and async implementations
Addresses feedback from PR anthropics#993:
- SSEDecoder doesn't have a close method, properly close httpx response instead
- Ensure consistent comments between sync/async versions1 parent cf51769 commit 5a87d43
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | | - | |
| 208 | + | |
210 | 209 | | |
211 | 210 | | |
212 | 211 | | |
| |||
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| 234 | + | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
| |||
0 commit comments