Commit 027d82b
authored
fix: add missing __aiter__ method to TextGenerationStream (#196)
Without __aiter__, async for chunk in stream: raises
TypeError: 'TextGenerationStream' object is not an async iterable.
This makes async streaming completely broken when _is_async=True.1 parent 1280a2e commit 027d82b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| |||
0 commit comments