mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-13 12:22:57 +00:00
fix(test_amazing_vertex_completion.py): fix test to check if content is none
This commit is contained in:
@@ -281,7 +281,8 @@ async def test_async_vertexai_streaming_response():
|
||||
complete_response = ""
|
||||
async for chunk in response:
|
||||
print(f"chunk: {chunk}")
|
||||
complete_response += chunk.choices[0].delta.content
|
||||
if chunk.choices[0].delta.content is not None:
|
||||
complete_response += chunk.choices[0].delta.content
|
||||
print(f"complete_response: {complete_response}")
|
||||
assert len(complete_response) > 0
|
||||
except litellm.RateLimitError as e:
|
||||
|
||||
Reference in New Issue
Block a user