Skip to content

Commit 200cddf

Browse files
committed
Update cost assertions in formatter tests for accuracy
1 parent 81ae7ea commit 200cddf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/lib/test_formatter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def test_zero_tokens(self):
304304

305305
def test_known_model_with_tokens(self):
306306
result = Formatter.costs("openai/gpt-4o-mini", 1000, 2000)
307-
assert result == {"cached": "0.000075", "total": "0.0012"}
307+
assert result == {"cached": "0.0", "total": "0.00119"}
308308

309309

310310
class TestMetrics:
@@ -324,7 +324,7 @@ def test_cost_for_known_model(self):
324324
outputs={"total_tokens": 2000, "cached_tokens": 1000},
325325
)
326326
result = Formatter.metrics(run)
327-
assert result["costs"] == {"cached": "0.000075", "total": "0.0012"}
327+
assert result["costs"] == {"cached": "0.0", "total": "0.00119"}
328328

329329
def test_unknown_model_fallback(self):
330330
run = make_metrics_run()

0 commit comments

Comments
 (0)