Skip to content

Commit

Permalink
Relax condition for cached responses
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Jan 16, 2025
1 parent 802c46b commit a6afceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/components/generators/chat/test_hugging_face_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def test_live_run_serverless_streaming(self):

response_meta = response["replies"][0].meta
assert "completion_start_time" in response_meta
assert datetime.fromisoformat(response_meta["completion_start_time"]) < datetime.now()
assert datetime.fromisoformat(response_meta["completion_start_time"]) <= datetime.now()
assert "usage" in response_meta
assert "prompt_tokens" in response_meta["usage"]
assert "completion_tokens" in response_meta["usage"]
Expand Down

0 comments on commit a6afceb

Please sign in to comment.