Commit b1ed6d5
committed
fix(oci): address Bugbot review — deduplicate Streamer and add V1 stream-start
1. Remove duplicate Streamer class (manually_maintained/streaming.py)
and import from aws_client.py instead. Both were identical
SyncByteStream wrappers.
2. Emit stream-start event with generation_id at the beginning of V1
streams, matching the standard Cohere V1 streaming chat format.
Consumers relying on stream-start for state initialization will now
receive it before text-generation events.
Updated test_v1_stream_wrapper_preserves_finish_reason to verify
stream-start is emitted first.1 parent 49f4c34 commit b1ed6d5
3 files changed
Lines changed: 20 additions & 24 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
1042 | | - | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1043 | 1050 | | |
1044 | 1051 | | |
1045 | 1052 | | |
1046 | 1053 | | |
1047 | 1054 | | |
1048 | 1055 | | |
1049 | | - | |
1050 | | - | |
| 1056 | + | |
1051 | 1057 | | |
1052 | 1058 | | |
1053 | 1059 | | |
| |||
1091 | 1097 | | |
1092 | 1098 | | |
1093 | 1099 | | |
1094 | | - | |
| 1100 | + | |
| 1101 | + | |
1095 | 1102 | | |
1096 | 1103 | | |
1097 | 1104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
804 | | - | |
805 | | - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
806 | 810 | | |
807 | 811 | | |
808 | 812 | | |
| |||
0 commit comments