Skip to content

fix(llm): truncate token hints to whole amounts - #341

Merged
spalen0 merged 2 commits into
mainfrom
llm-deci
Aug 19, 2026
Merged

fix(llm): truncate token hints to whole amounts#341
spalen0 merged 2 commits into
mainfrom
llm-deci

Conversation

@spalen0

@spalen0 spalen0 commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • truncate token-decimal amount hints to whole tokens for values of at least one token
  • retain one truncated decimal for sub-token values from 0.1 to under 1, and omit smaller hints
  • cover the reported JANE emissions example and sub-token behavior with regression tests

Testing

  • /srv/monitoring/.venv/bin/python -m pytest -q (799 passed, 6 skipped)

@spalen0
spalen0 marked this pull request as ready for review August 19, 2026 08:00
@spalen0
spalen0 merged commit 707fe3a into main Aug 19, 2026
3 checks passed
@spalen0
spalen0 deleted the llm-deci branch August 19, 2026 08:02
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.

1 participant