mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
Fix: test_nova_invoke_streaming_chunk_parsing
This commit is contained in:
parent
12463809bd
commit
a4bf14f6e7
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ def test_nova_invoke_streaming_chunk_parsing():
|
|||
}
|
||||
result = decoder._chunk_parser(nova_tool_start_chunk)
|
||||
assert result.choices[0].delta.content == ""
|
||||
assert result.choices[0].index == 1
|
||||
assert result.choices[0].index == 0
|
||||
assert result.choices[0].delta.tool_calls is not None
|
||||
assert result.choices[0].delta.tool_calls[0].type == "function"
|
||||
assert result.choices[0].delta.tool_calls[0].function.name == "get_weather"
|
||||
|
|
@ -129,7 +129,7 @@ def test_nova_invoke_streaming_chunk_parsing():
|
|||
}
|
||||
result = decoder._chunk_parser(nova_tool_args_chunk)
|
||||
assert result.choices[0].delta.content == ""
|
||||
assert result.choices[0].index == 2
|
||||
assert result.choices[0].index == 0
|
||||
assert result.choices[0].delta.tool_calls is not None
|
||||
assert (
|
||||
result.choices[0].delta.tool_calls[0].function.arguments
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue