Commit b644eb3
committed
fix: remove dead chat_stream endpoint and body-based stream detection
The "stream" in endpoint check was dead code — both V1 and V2 SDK always
route through endpoint "chat" (v1/chat and v2/chat paths). Streaming is
reliably signalled via body["stream"], which the SDK always sets.
- Drop "stream" in endpoint guard on is_stream and isStream detection
- Remove "chat_stream" from action_map, transform, and response branches
- Update unit tests to use "chat" endpoint (the only real one)1 parent 636e76e commit b644eb3
2 files changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | | - | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | 557 | | |
559 | 558 | | |
560 | 559 | | |
| |||
658 | 657 | | |
659 | 658 | | |
660 | 659 | | |
661 | | - | |
| 660 | + | |
662 | 661 | | |
663 | 662 | | |
664 | 663 | | |
| |||
800 | 799 | | |
801 | 800 | | |
802 | 801 | | |
803 | | - | |
| 802 | + | |
804 | 803 | | |
805 | 804 | | |
806 | 805 | | |
| |||
861 | 860 | | |
862 | 861 | | |
863 | 862 | | |
864 | | - | |
| 863 | + | |
865 | 864 | | |
866 | 865 | | |
867 | 866 | | |
| |||
1096 | 1095 | | |
1097 | 1096 | | |
1098 | 1097 | | |
1099 | | - | |
| 1098 | + | |
1100 | 1099 | | |
1101 | 1100 | | |
1102 | 1101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | | - | |
764 | 762 | | |
765 | 763 | | |
766 | 764 | | |
| |||
0 commit comments