@@ -69,6 +69,18 @@ class Case:
6969 expected_parts = [TextPart ('<think>' )],
7070 vendor_part_id = None ,
7171 ),
72+ Case (
73+ name = 'unclosed_opening_tag_with_content_no_vendor_id' ,
74+ chunks = ['<think>' , 'content' ],
75+ expected_parts = [ThinkingPart ('content' )],
76+ vendor_part_id = None ,
77+ ),
78+ Case (
79+ name = 'partial_closing_tag_no_vendor_id' ,
80+ chunks = ['<think>' , 'content' , '</thi' ],
81+ expected_parts = [ThinkingPart ('content</thi' )],
82+ vendor_part_id = None ,
83+ ),
7284 # --- Split thinking tags -> ThinkingPart ---
7385 Case (
7486 name = 'open_with_content_then_close' ,
@@ -80,6 +92,12 @@ class Case:
8092 chunks = ['<think>' , 'content</think>' ],
8193 expected_parts = [ThinkingPart ('content' )],
8294 ),
95+ Case (
96+ name = 'open_then_content_and_close_no_vendor_id' ,
97+ chunks = ['<think>' , 'content</think>' ],
98+ expected_parts = [ThinkingPart ('content' )],
99+ vendor_part_id = None ,
100+ ),
83101 Case (
84102 name = 'fully_split_open_and_close' ,
85103 chunks = ['<th' , 'ink>content</th' , 'ink>' ],
0 commit comments