Commit 94e3d9a
fix(agent): restore safe non-streaming fallback after stream failures (NousResearch#3020)
After streaming retries are exhausted on transient errors, fall back to
non-streaming instead of propagating the error. Also fall back for any
other pre-delivery stream error (not just 'streaming not supported').
Added user-facing message when streaming is not supported by a model/
provider, directing users to set display.streaming: false in config.yaml
to avoid the fallback delay.
Cherry-picked from PR NousResearch#3008 by kshitijk4poor. Added UX message for
streaming-not-supported detection.
Co-authored-by: kshitijk4poor <kshitijk4poor@users.noreply.github.com>1 parent 0dcd6ab commit 94e3d9a
2 files changed
+68
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3824 | 3824 | | |
3825 | 3825 | | |
3826 | 3826 | | |
3827 | | - | |
3828 | | - | |
3829 | | - | |
3830 | | - | |
| 3827 | + | |
| 3828 | + | |
3831 | 3829 | | |
3832 | 3830 | | |
3833 | 3831 | | |
| |||
3845 | 3843 | | |
3846 | 3844 | | |
3847 | 3845 | | |
3848 | | - | |
3849 | 3846 | | |
3850 | | - | |
| 3847 | + | |
| 3848 | + | |
3851 | 3849 | | |
3852 | 3850 | | |
3853 | 3851 | | |
3854 | | - | |
3855 | | - | |
3856 | | - | |
3857 | | - | |
3858 | | - | |
3859 | | - | |
3860 | | - | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
3861 | 3865 | | |
3862 | | - | |
| 3866 | + | |
| 3867 | + | |
3863 | 3868 | | |
3864 | | - | |
3865 | | - | |
3866 | | - | |
3867 | | - | |
3868 | | - | |
3869 | 3869 | | |
3870 | | - | |
3871 | | - | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
3872 | 3874 | | |
3873 | 3875 | | |
3874 | 3876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
490 | 535 | | |
491 | 536 | | |
492 | 537 | | |
| |||
0 commit comments