Skip to content

feat: Add token count tracking#238

Merged
rmitsch merged 2 commits intomainfrom
141
Dec 22, 2025
Merged

feat: Add token count tracking#238
rmitsch merged 2 commits intomainfrom
141

Conversation

@rmitsch
Copy link
Collaborator

@rmitsch rmitsch commented Dec 22, 2025

Description

Adds token count tracking.

Related Issues

Changes Made

  • Adds token count tracking.

Checklist

  • Tests have been extended to cover changes in functionality
  • Existing and new tests succeed
  • Documentation updated (if applicable)
  • Related issues linked

Screenshots/Examples (if applicable)

@rmitsch rmitsch self-assigned this Dec 22, 2025
@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

❌ Patch coverage is 86.06557% with 17 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
sieves/model_wrappers/core.py 62.50% 6 Missing ⚠️
sieves/model_wrappers/outlines_.py 73.91% 6 Missing ⚠️
sieves/model_wrappers/dspy_.py 80.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #238      +/-   ##
==========================================
- Coverage   93.33%   93.10%   -0.23%     
==========================================
  Files          62       62              
  Lines        3450     3541      +91     
==========================================
+ Hits         3220     3297      +77     
- Misses        230      244      +14     
Files with missing lines Coverage Δ
sieves/model_wrappers/gliner_.py 95.74% <100.00%> (+1.45%) ⬆️
sieves/model_wrappers/huggingface_.py 91.11% <100.00%> (+2.22%) ⬆️
sieves/model_wrappers/langchain_.py 89.13% <100.00%> (+1.63%) ⬆️
sieves/model_wrappers/types.py 100.00% <100.00%> (ø)
sieves/tasks/predictive/core.py 91.70% <100.00%> (+0.54%) ⬆️
sieves/model_wrappers/dspy_.py 84.81% <80.00%> (-1.86%) ⬇️
sieves/model_wrappers/core.py 90.41% <62.50%> (-6.26%) ⬇️
sieves/model_wrappers/outlines_.py 88.88% <73.91%> (-5.66%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rmitsch rmitsch marked this pull request as ready for review December 22, 2025 09:53
@rmitsch rmitsch merged commit 04d2460 into main Dec 22, 2025
3 checks passed
@rmitsch rmitsch deleted the 141 branch December 22, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add token logging + EcoLogits or similar

1 participant