Skip to content

Fix issue 1#2

Merged
dcloud347 merged 2 commits intomainfrom
fix-issue-1
Sep 5, 2025
Merged

Fix issue 1#2
dcloud347 merged 2 commits intomainfrom
fix-issue-1

Conversation

@dcloud347
Copy link
Collaborator

This pull request enhances the documentation of the token counting utility functions in athena/utils/llm_util.py by adding detailed docstrings. These updates clarify the purpose, arguments, return values, and implementation notes for each function, making the code easier to understand and maintain.

Documentation improvements:

  • Added a comprehensive docstring to str_token_counter, explaining its use of tiktoken's o200k_base encoding and its arguments and return value.
  • Expanded the docstring for tiktoken_counter, detailing its methodology, supported message types, return value, error handling, and implementation notes, including a reference to the OpenAI cookbook.

@dcloud347 dcloud347 merged commit c138c1c into main Sep 5, 2025
1 check passed
@dcloud347 dcloud347 deleted the fix-issue-1 branch September 5, 2025 18:39
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