Skip to content

chore: improve llm maintenance path#1460

Open
lphuc2250gma wants to merge 1 commit into
simonw:mainfrom
lphuc2250gma:maint/20260524193711
Open

chore: improve llm maintenance path#1460
lphuc2250gma wants to merge 1 commit into
simonw:mainfrom
lphuc2250gma:maint/20260524193711

Conversation

@lphuc2250gma
Copy link
Copy Markdown

Summary:

  • Add edge-case unit tests and tighten type annotations for utility helpers in llm/utils.py (e.g., truncate_string boundary cases — empty input, exact-length input, multibyte chars; token-counting helpers with empty/None inputs). Mechanical, contained to two files, no behavior change required.
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

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