test(streaming): build thinking chunks with typed Delta/StreamingChoices

This commit is contained in:
Emerson Gomes 2026-02-08 05:08:50 -06:00
parent f7d03f8a43
commit c63d5fa0b5

View File

@ -168,16 +168,14 @@ def test_get_combined_thinking_content_preserves_interleaved_blocks():
def make_chunk(**delta_kwargs):
return ModelResponseStream(
**{
**base_chunk,
"choices": [
{
"index": 0,
"delta": delta_kwargs,
"finish_reason": None,
}
],
}
**base_chunk,
choices=[
StreamingChoices(
index=0,
delta=Delta(**delta_kwargs),
finish_reason=None,
)
],
)
chunks = [