Skip to content

Commit

Permalink
fix assert statement that always evaluates to true
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangTianrong committed Mar 1, 2024
1 parent ac4fe4e commit e997060
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xinference/client/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def _check_stream():
generate_config={"stream": True, "max_tokens": 5},
)
for chunk in streaming_response:
assert "content" or "role" in chunk["choices"][0]["delta"]
assert ("content" in chunk["choices"][0]["delta"]) or (
"role" in chunk["choices"][0]["delta"]
)

_check_stream()

Expand Down

0 comments on commit e997060

Please sign in to comment.