mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
test(test_azure_astreaming_and_function_calling): fix test to handle caching
This commit is contained in:
parent
1c55f2ccc5
commit
4d85387b5a
1 changed files with 1 additions and 1 deletions
|
|
@ -2096,7 +2096,7 @@ async def test_azure_astreaming_and_function_calling():
|
|||
chunk.choices[0].delta.tool_calls[0].function.arguments, str
|
||||
)
|
||||
validate_first_streaming_function_calling_chunk(chunk=chunk)
|
||||
elif idx == 1:
|
||||
elif idx == 1 and chunk.choices[0].finish_reason is None:
|
||||
validate_second_streaming_function_calling_chunk(chunk=chunk)
|
||||
elif chunk.choices[0].finish_reason is not None: # last chunk
|
||||
validate_final_streaming_function_calling_chunk(chunk=chunk)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue