test(streaming): build thinking chunks with typed Delta/StreamingChoices
This commit is contained in:
parent
f7d03f8a43
commit
c63d5fa0b5
@ -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 = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user