Skip to content

Conversation

@manuelporrasojeda
Copy link
Contributor

No description provided.

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 PR refactors text similarity functions to accept keyword arguments (**kwargs) instead of specific parameters, providing greater flexibility when calling these functions with different models and configurations.

Key changes:

  • Replaced specific function parameters (model_name, azure) with **kwargs across text similarity and OpenAI request functions
  • Updated function signatures and documentation to reflect the kwargs pattern
  • Added test coverage for the new kwargs functionality

Reviewed Changes

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

File Description
toolium/utils/ai_utils/text_similarity.py Modified all text similarity functions to accept **kwargs instead of specific parameters; updated docstrings accordingly
toolium/utils/ai_utils/openai.py Refactored openai_request to use **kwargs pattern for model_name and azure parameters
toolium/test/utils/ai_utils/test_text_similarity.py Added test cases validating kwargs propagation through assert_text_similarity
docs/ai_utils.rst Updated documentation examples to show model_name and azure parameter usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@manuelporrasojeda manuelporrasojeda merged commit e1d807b into master Nov 17, 2025
17 checks passed
@manuelporrasojeda manuelporrasojeda deleted the fix/model_as_parameter branch November 17, 2025 11:35
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.

4 participants