Skip to content

Conversation

@senko
Copy link
Owner

@senko senko commented May 14, 2025

No description provided.

@senko senko requested a review from Copilot May 14, 2025 19:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request focuses on enhancing type checking and code consistency across the project by updating type hints, adding casts, and modernizing dictionary literal syntax. Key changes include:

  • Updating error messages and type conversion (using cast) in LLM modules.
  • Enhancing usage of new helper functions (e.g., image_url, document_url) in content parsing.
  • Adding new examples and local hooks for type checking in the CI configuration.

Reviewed Changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
think/llm/bedrock.py Updated dictionary literals and error messages; added image_url in type conversion.
think/llm/base.py Added type casts for clarity in message processing.
think/llm/anthropic.py Updated dictionary formatting and handling of document_url; improved error handling.
pyproject.toml Added a new dependency for type checking.
examples/* New examples added/removed to reflect updated functionality.
.pre-commit-config.yaml & ci.yml Added local hooks and CI steps for type checking.

@senko senko changed the title Type checks Improve type hinting May 14, 2025
@senko senko merged commit fe4c5b8 into main May 14, 2025
4 checks passed
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