Skip to content

Conversation

ansschh
Copy link

@ansschh ansschh commented Aug 15, 2025

Cleans up code style issues and fixes TODO comment for better error message semantics.

  • responses_api/utils.py: Remove commented-out fake_tokens arrays and add type hint to token_queue
  • tools/tool.py: Fix TODO - use SystemContent instead of TextContent for tool error messages

ansschh added 2 commits August 9, 2025 11:25
- Add return type hint to get_tokenizer()
- Add type hints and checkpoint validation to generate.py main()
- Add parameter type hints to suppress_output() in torch/utils.py

Improves IDE support and catches potential bugs early.
- Remove commented-out fake_tokens arrays in responses_api/utils.py
- Add proper type hint to token_queue variable
- Fix TODO in tools/tool.py: use SystemContent instead of TextContent for error messages
- Add SystemContent import to tools/tool.py

These changes improve code cleanliness and use more appropriate content types for tool error messages.
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.

2 participants