Skip to content

Commit 7219d29

Browse files
docs(token_budget): clarify HeuristicTokenCounter is test/fallback estimation only
1 parent 6d9d182 commit 7219d29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/gitmate/token_budget.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def count_tokens(self, text: str, model: str) -> int:
8585

8686

8787
class HeuristicTokenCounter:
88-
"""Fast, offline heuristic token counter (~4 characters per token)."""
88+
"""Test/fallback estimation only (~4 chars/token); not accurate enough for real budget enforcement."""
8989

9090
def count_tokens(self, text: str, model: str) -> int:
9191
"""Estimate token count using 4 chars/token heuristic with a minimum of 1."""

0 commit comments

Comments
 (0)