mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
test(streaming): build thinking chunks with typed Delta/StreamingChoices
This commit is contained in:
parent
f7d03f8a43
commit
c63d5fa0b5
1 changed files with 8 additions and 10 deletions
|
|
@ -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…
Add table
Reference in a new issue