Skip to content

A programming framework for agentic AI

fix logging cost flaky test (#2277)

cheng-tane83301ed187f
diff --git a/test/agentchat/test_agent_logging.py b/test/agentchat/test_agent_logging.py
index 0a974ff8d..8de4712de 100644
--- a/test/agentchat/test_agent_logging.py
+++ b/test/agentchat/test_agent_logging.py
@@ -116,7 +116,7 @@ def test_two_agents_logging(db_connection):
else:
assert "choices" in response and len(response["choices"]) > 0
- assert row["cost"] > 0
+ assert row["cost"] >= 0.0
assert row["start_time"], "start timestamp is empty"
assert row["end_time"], "end timestamp is empty"